Missed one

TODO: fix this properly
This commit is contained in:
Dylan K. Taylor 2016-11-10 13:25:58 +00:00
parent 0ac04b52ff
commit bd5bbbea10

View File

@ -511,9 +511,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$data = new \stdClass();
$count = 0;
foreach($this->server->getCommandMap()->getCommands() as $command){
if(!$command->testPermissionSilent($this)){
//TODO: fix command permission checks on join
/*if(!$command->testPermissionSilent($this)){
continue;
}
}*/
++$count;
$data->{$command->getName()}->versions[0] = $command->generateCustomCommandData($this);
}