mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Missed one
TODO: fix this properly
This commit is contained in:
parent
0ac04b52ff
commit
bd5bbbea10
@ -511,9 +511,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$data = new \stdClass();
|
$data = new \stdClass();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach($this->server->getCommandMap()->getCommands() as $command){
|
foreach($this->server->getCommandMap()->getCommands() as $command){
|
||||||
if(!$command->testPermissionSilent($this)){
|
//TODO: fix command permission checks on join
|
||||||
|
/*if(!$command->testPermissionSilent($this)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}*/
|
||||||
++$count;
|
++$count;
|
||||||
$data->{$command->getName()}->versions[0] = $command->generateCustomCommandData($this);
|
$data->{$command->getName()}->versions[0] = $command->generateCustomCommandData($this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user