This commit is contained in:
PEMapModder 2016-02-19 18:50:38 +08:00
parent 80250aa78e
commit ffa835d730

View File

@ -44,6 +44,7 @@ class TeleportCommand extends VanillaCommand{
return true; return true;
} }
$args = array_filter($args);
if(count($args) < 1 or count($args) > 6){ if(count($args) < 1 or count($args) > 6){
$sender->sendMessage(new TranslationContainer("commands.generic.usage", [$this->usageMessage])); $sender->sendMessage(new TranslationContainer("commands.generic.usage", [$this->usageMessage]));