Skip to content

Commit 5747f2a

Browse files
committed
[Build] remove arbitrary constraints
1 parent be3c8e9 commit 5747f2a

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
path: PharBuilder
2020
ref: pm5
2121
- name: Download PHP Release
22-
uses: dsaltares/fetch-gh-release-asset@1.0.0
22+
uses: dsaltares/fetch-gh-release-asset@1.1.1
2323
with:
24-
file: Linux.zip
24+
file: PHP-Linux-x86_64-PM5.tar.gz
2525
repo: NetherGamesMC/php-build-scripts
26-
version: "tags/8.2-pm5"
26+
version: "tags/php-8.3-latest"
2727
token: ${{ secrets.GITHUB_TOKEN }}
2828
- name: Unpack PHP Release
29-
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
29+
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
3030
- name: Download pharbuilder-rs
31-
uses: dsaltares/[email protected].0
31+
uses: dsaltares/[email protected].1
3232
with:
3333
file: pharbuilder
3434
repo: NetherGamesMC/pharbuilder-rs

.github/workflows/phpstan.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
- name: Startup
1313
uses: actions/checkout@v3
1414
- name: Download PHP Release
15-
uses: dsaltares/fetch-gh-release-asset@1.0.0
15+
uses: dsaltares/fetch-gh-release-asset@1.1.1
1616
with:
17-
file: Linux.zip
17+
file: PHP-Linux-x86_64-PM5.tar.gz
1818
repo: NetherGamesMC/php-build-scripts
19-
version: "tags/8.2-pm5"
19+
version: "tags/php-8.3-latest"
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
- name: Unpack PHP Release
22-
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
22+
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
2323
- name: Checkout PharBuilder
2424
uses: actions/checkout@v3
2525
with:

src/MyPlot/forms/subforms/AutoForm.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ public function getName(): string
3232
public function onButtonClick(Player $player): void
3333
{
3434
$plugin = MyPlot::getInstance();
35-
36-
if ($player->getWorld()->getFolderName() === 'Platinum' && MyPlot::essentialsExists() && !$player->hasPermission(Permissions::RANK_ULTRA)) {
37-
$player->sendMessage('§cThat action is blocked for you in this world.');
38-
return;
39-
}
40-
4135
$player->getServer()->dispatchCommand($player, $plugin->getLanguage()->get("command.name") . " " . $plugin->getLanguage()->get("auto.name"), true);
4236
}
4337
}

src/MyPlot/forms/subforms/ClaimForm.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public function onButtonClick(Player $player): void
4141
} else {
4242
$player->sendMessage(TextFormat::RED . $plugin->getLanguage()->translateString('claim.alreadyclaimed', [$plot->owner]));
4343
}
44-
} else if ($player->getWorld()->getFolderName() === 'Platinum' && MyPlot::essentialsExists() && !$player->hasPermission(Permissions::RANK_ULTRA)) {
45-
$player->sendMessage('§cThat action is blocked for you in this world.');
4644
} else {
4745
$maxPlots = $plugin->getMaxPlotsOfPlayer($player);
4846
$plotsOfPlayer = count($plugin->getProvider()->getPlotsByOwner($player->getName(), $player->getWorld()->getFolderName()));

0 commit comments

Comments
 (0)