diff --git a/.poggit.yml b/.poggit.yml new file mode 100644 index 0000000..63a1520 --- /dev/null +++ b/.poggit.yml @@ -0,0 +1,7 @@ +--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/ZPlayzMCPE/VoteReward +branches: +- master +projects: + VoteReward-Prismarine: + path: "" +... diff --git a/plugin.yml b/plugin.yml index 5225f34..1fafcbd 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: VoteReward main: LDX\VoteReward\Main version: 3.0.2 -api: [1.12.0, 2.0.0] +api: [1.12.0, 2.0.0, 3.0.0, 3.0.1] author: LDX website: "http://votereward.mcpe.me" load: POSTWORLD @@ -24,4 +24,4 @@ permissions: description: "Allows access to using the vote command." votereward.command.reload: default: op - description: "Allows access to the vote reload subcommand." \ No newline at end of file + description: "Allows access to the vote reload subcommand." diff --git a/src/LDX/VoteReward/Main.php b/src/LDX/VoteReward/Main.php index b28f404..b829280 100644 --- a/src/LDX/VoteReward/Main.php +++ b/src/LDX/VoteReward/Main.php @@ -65,7 +65,7 @@ public function reload() { $this->debug = isset($config["Debug"]) && $config["Debug"] === true ? true : false; } - public function onCommand(CommandSender $sender, Command $command, $label, array $args) { + public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool { switch(strtolower($command->getName())) { case "vote": if(isset($args[0]) && strtolower($args[0]) == "reload") { @@ -155,4 +155,4 @@ public function rewardPlayer($player, $multiplier) { $player->sendMessage("[VoteReward] You voted on $multiplier server list" . ($multiplier == 1 ? "" : "s") . "!"); } -} \ No newline at end of file +}