Skip to content

Commit

Permalink
Temporary fix for commands, remove permission filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 5, 2016
1 parent c494af6 commit 1ac74fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pocketmine/command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,17 @@ public function getDefaultCommandData() : \stdClass{
* @return \stdClass|null
*/
public function generateCustomCommandData(Player $player){
if(!$this->testPermission($player)){
//TODO: fix command permission filtering on join
/*if(!$this->testPermission($player)){
return null;
}
}*/
$customData = clone $this->commandData;
$customData->aliases = $this->getAliases();
foreach($customData->overloads as &$overload){
/*foreach($customData->overloads as &$overload){
if(($p = @$overload->pocketminePermission) !== null and !$player->hasPermission($p)){
unset($overload);
}
}
}*/
return $customData;
}

Expand Down

0 comments on commit 1ac74fe

Please sign in to comment.