This commit is contained in:
Ad5001 2017-10-27 22:40:23 +02:00
parent 51a14b7d3b
commit f18ee6266c
2 changed files with 4 additions and 4 deletions

View File

@ -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 !

View File

@ -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) {