mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Added Inventory interfaces and types, updated long array() to []
This commit is contained in:
@@ -65,7 +65,7 @@ class HelpCommand extends VanillaCommand{
|
||||
}
|
||||
|
||||
if($command === ""){
|
||||
$commands = array();
|
||||
$commands = [];
|
||||
foreach(Server::getInstance()->getCommandMap()->getCommands() as $command){
|
||||
if($command->testPermissionSilent($sender)){
|
||||
$commands[$command->getName()] = $command;
|
||||
|
@@ -29,7 +29,7 @@ abstract class VanillaCommand extends Command{
|
||||
const MAX_COORD = 524288;
|
||||
const MIN_COORD = -524288;
|
||||
|
||||
public function __construct($name, $description = "", $usageMessage = null, array $aliases = array()){
|
||||
public function __construct($name, $description = "", $usageMessage = null, array $aliases = []){
|
||||
parent::__construct($name, $description, $usageMessage, $aliases);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user