Skip to content

Commit

Permalink
[Build] remove arbitrary constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Mar 2, 2024
1 parent be3c8e9 commit 5747f2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
path: PharBuilder
ref: pm5
- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@1.0.0
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
file: Linux.zip
file: PHP-Linux-x86_64-PM5.tar.gz
repo: NetherGamesMC/php-build-scripts
version: "tags/8.2-pm5"
version: "tags/php-8.3-latest"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
- name: Download pharbuilder-rs
uses: dsaltares/[email protected].0
uses: dsaltares/[email protected].1
with:
file: pharbuilder
repo: NetherGamesMC/pharbuilder-rs
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- name: Startup
uses: actions/checkout@v3
- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@1.0.0
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
file: Linux.zip
file: PHP-Linux-x86_64-PM5.tar.gz
repo: NetherGamesMC/php-build-scripts
version: "tags/8.2-pm5"
version: "tags/php-8.3-latest"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
- name: Checkout PharBuilder
uses: actions/checkout@v3
with:
Expand Down
6 changes: 0 additions & 6 deletions src/MyPlot/forms/subforms/AutoForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ public function getName(): string
public function onButtonClick(Player $player): void
{
$plugin = MyPlot::getInstance();

if ($player->getWorld()->getFolderName() === 'Platinum' && MyPlot::essentialsExists() && !$player->hasPermission(Permissions::RANK_ULTRA)) {
$player->sendMessage('§cThat action is blocked for you in this world.');
return;
}

$player->getServer()->dispatchCommand($player, $plugin->getLanguage()->get("command.name") . " " . $plugin->getLanguage()->get("auto.name"), true);
}
}
2 changes: 0 additions & 2 deletions src/MyPlot/forms/subforms/ClaimForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function onButtonClick(Player $player): void
} else {
$player->sendMessage(TextFormat::RED . $plugin->getLanguage()->translateString('claim.alreadyclaimed', [$plot->owner]));
}
} else if ($player->getWorld()->getFolderName() === 'Platinum' && MyPlot::essentialsExists() && !$player->hasPermission(Permissions::RANK_ULTRA)) {
$player->sendMessage('§cThat action is blocked for you in this world.');
} else {
$maxPlots = $plugin->getMaxPlotsOfPlayer($player);
$plotsOfPlayer = count($plugin->getProvider()->getPlotsByOwner($player->getName(), $player->getWorld()->getFolderName()));
Expand Down

0 comments on commit 5747f2a

Please sign in to comment.