From f18ee6266cca30d6f5151a4eea9351ecd57f486b Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Fri, 27 Oct 2017 22:40:23 +0200 Subject: [PATCH] ALPHA9 --- plugin.yml | 4 ++-- src/Ad5001/FloatingTexts/Main.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.yml b/plugin.yml index ea10138..3945ed3 100644 --- a/plugin.yml +++ b/plugin.yml @@ -5,7 +5,7 @@ name: FloatingTexts author: Ad5001 main: Ad5001\FloatingTexts\Main version: 1.0 -api: [3.0.0, 3.0.0-ALPHA3] +api: [3.0.0, 3.0.0-ALPHA3, 3.0.0-ALPHA9] commands: createfloat: description: Create a floating text ! @@ -14,4 +14,4 @@ commands: permissions: floatingtexts.cmd: default: op -... \ No newline at end of file +... diff --git a/src/Ad5001/FloatingTexts/Main.php b/src/Ad5001/FloatingTexts/Main.php index 5c6ba8b..4b98ef2 100644 --- a/src/Ad5001/FloatingTexts/Main.php +++ b/src/Ad5001/FloatingTexts/Main.php @@ -30,7 +30,7 @@ class Main extends PluginBase implements \pocketmine\event\Listener { @param $args array return bool */ - public function onCommand(\pocketmine\command\CommandSender $sender, \pocketmine\command\Command $cmd, $label, array $args): bool { + public function onCommand(\pocketmine\command\CommandSender $sender, \pocketmine\command\Command $cmd, string $label, array $args): bool { switch($cmd->getName()) { case "createfloat": if($sender instanceof Player) { @@ -86,4 +86,4 @@ class Main extends PluginBase implements \pocketmine\event\Listener { } } } -} \ No newline at end of file +}