Skip to content

Commit

Permalink
Update Main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AzliRynz authored Jul 8, 2024
1 parent e2f469b commit acd796f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/NurAzliYT/LandProtections/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@
use pocketmine\command\CommandSender;
use pocketmine\world\Position;
use pocketmine\utils\Config;
use pocketmine\event\Cancellable;
use NurAzliYT\LandProtections\commands\ClaimCommand;
use NurAzliYT\LandProtections\commands\AccessLandCommand;
use pocketmine\player\Player;
use cooldogedev\BedrockEconomy\BedrockEconomy;
use cooldogedev\BedrockEconomy\api\BedrockEconomyAPI;
use cooldogedev\BedrockEconomy\api\BedrockEconomyAPIv1;
use pocketmine\player\Player;
use NurAzliYT\LandProtections\commands\ClaimCommand;
use NurAzliYT\LandProtections\commands\AccessLandCommand;

class Main extends PluginBase implements Listener {

Check failure on line 21 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Class NurAzliYT\LandProtections\Main extends unknown class pocketmine\plugin\PluginBase.

Check failure on line 21 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Class NurAzliYT\LandProtections\Main implements unknown interface pocketmine\event\Listener.
private Config $config;

Check failure on line 22 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Property NurAzliYT\LandProtections\Main::$config has unknown class pocketmine\utils\Config as its type.
private array $claimedChunks = [];
private array $chunkAccess = [];
private ?BedrockEconomyAPIv1 $economyAPI = null;
private ?BedrockEconomyAPI $economyAPI = null;

Check failure on line 25 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Property NurAzliYT\LandProtections\Main::$economyAPI has unknown class cooldogedev\BedrockEconomy\api\BedrockEconomyAPI as its type.

public function onEnable(): void {
$this->saveDefaultConfig();

Check failure on line 28 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Call to an undefined method NurAzliYT\LandProtections\Main::saveDefaultConfig().
Expand All @@ -33,7 +31,7 @@ public function onEnable(): void {
$this->chunkAccess = $this->config->get("chunkAccess", []);

Check failure on line 31 in src/NurAzliYT/LandProtections/Main.php

View workflow job for this annotation

GitHub Actions / Check Code Style

Call to method get() on an unknown class pocketmine\utils\Config.

// BedrockEconomy integration
$this->economyAPI = BedrockEconomy::getInstance()->getAPIv1();
$this->economyAPI = BedrockEconomy::getInstance()->getAPI();

$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->getServer()->getCommandMap()->register("claim", new ClaimCommand($this));
Expand Down

0 comments on commit acd796f

Please sign in to comment.