mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-21 02:44:03 +00:00
Temporary fix for commands, remove permission filter
This commit is contained in:
parent
c494af618c
commit
1ac74fe5bc
@ -107,16 +107,17 @@ abstract class Command{
|
|||||||
* @return \stdClass|null
|
* @return \stdClass|null
|
||||||
*/
|
*/
|
||||||
public function generateCustomCommandData(Player $player){
|
public function generateCustomCommandData(Player $player){
|
||||||
if(!$this->testPermission($player)){
|
//TODO: fix command permission filtering on join
|
||||||
|
/*if(!$this->testPermission($player)){
|
||||||
return null;
|
return null;
|
||||||
}
|
}*/
|
||||||
$customData = clone $this->commandData;
|
$customData = clone $this->commandData;
|
||||||
$customData->aliases = $this->getAliases();
|
$customData->aliases = $this->getAliases();
|
||||||
foreach($customData->overloads as &$overload){
|
/*foreach($customData->overloads as &$overload){
|
||||||
if(($p = @$overload->pocketminePermission) !== null and !$player->hasPermission($p)){
|
if(($p = @$overload->pocketminePermission) !== null and !$player->hasPermission($p)){
|
||||||
unset($overload);
|
unset($overload);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
return $customData;
|
return $customData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user