diff --git a/plugin.yml b/plugin.yml index a39b751..645c4f9 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,5 +1,5 @@ main: aliuly\manyworlds\Main -api: 2.0.0 +api: 3.0.0-ALPHA10, 3.0.0-ALPHA11 load: POSTWORLD name: ManyWorlds diff --git a/src/aliuly/manyworlds/Main.php b/src/aliuly/manyworlds/Main.php index 6b2d3f4..e3e98f8 100644 --- a/src/aliuly/manyworlds/Main.php +++ b/src/aliuly/manyworlds/Main.php @@ -72,7 +72,7 @@ public function autoLoad(CommandSender $c,$world) { // Command dispatcher // ////////////////////////////////////////////////////////////////////// - public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) { + public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args) : bool{ if ($cmd->getName() != "manyworlds") return false; return $this->dispatchSCmd($sender,$cmd,$args); }