mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed #109
This commit is contained in:
parent
d29e96407e
commit
8ced6547f2
@ -44,7 +44,9 @@ class TeleportCommand extends VanillaCommand{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$args = array_filter($args);
|
$args = array_filter($args, function($arg){
|
||||||
|
return strlen($arg) > 0;
|
||||||
|
});
|
||||||
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]));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user