mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
SimpleCommandMap: remove some dupe and arrange commands alphabetically
This commit is contained in:
parent
1fd7f441b4
commit
ff2b3bfa2a
@ -85,48 +85,52 @@ class SimpleCommandMap implements CommandMap{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setDefaultCommands(){
|
private function setDefaultCommands(){
|
||||||
$this->register("pocketmine", new VersionCommand("version"));
|
$this->registerAll("pocketmine", [
|
||||||
$this->register("pocketmine", new PluginsCommand("plugins"));
|
new BanCommand("ban"),
|
||||||
$this->register("pocketmine", new SeedCommand("seed"));
|
new BanIpCommand("ban-ip"),
|
||||||
$this->register("pocketmine", new HelpCommand("help"));
|
new BanListCommand("banlist"),
|
||||||
$this->register("pocketmine", new StopCommand("stop"));
|
new DefaultGamemodeCommand("defaultgamemode"),
|
||||||
$this->register("pocketmine", new TellCommand("tell"));
|
new DeopCommand("deop"),
|
||||||
$this->register("pocketmine", new DefaultGamemodeCommand("defaultgamemode"));
|
new DifficultyCommand("difficulty"),
|
||||||
$this->register("pocketmine", new BanCommand("ban"));
|
new EffectCommand("effect"),
|
||||||
$this->register("pocketmine", new BanIpCommand("ban-ip"));
|
new EnchantCommand("enchant"),
|
||||||
$this->register("pocketmine", new BanListCommand("banlist"));
|
new GamemodeCommand("gamemode"),
|
||||||
$this->register("pocketmine", new PardonCommand("pardon"));
|
new GiveCommand("give"),
|
||||||
$this->register("pocketmine", new PardonIpCommand("pardon-ip"));
|
new HelpCommand("help"),
|
||||||
$this->register("pocketmine", new SayCommand("say"));
|
new KickCommand("kick"),
|
||||||
$this->register("pocketmine", new MeCommand("me"));
|
new KillCommand("kill"),
|
||||||
$this->register("pocketmine", new ListCommand("list"));
|
new ListCommand("list"),
|
||||||
$this->register("pocketmine", new DifficultyCommand("difficulty"));
|
new MeCommand("me"),
|
||||||
$this->register("pocketmine", new KickCommand("kick"));
|
new OpCommand("op"),
|
||||||
$this->register("pocketmine", new OpCommand("op"));
|
new PardonCommand("pardon"),
|
||||||
$this->register("pocketmine", new DeopCommand("deop"));
|
new PardonIpCommand("pardon-ip"),
|
||||||
$this->register("pocketmine", new WhitelistCommand("whitelist"));
|
new ParticleCommand("particle"),
|
||||||
$this->register("pocketmine", new SaveOnCommand("save-on"));
|
new PluginsCommand("plugins"),
|
||||||
$this->register("pocketmine", new SaveOffCommand("save-off"));
|
new ReloadCommand("reload"),
|
||||||
$this->register("pocketmine", new SaveCommand("save-all"));
|
new SaveCommand("save-all"),
|
||||||
$this->register("pocketmine", new GiveCommand("give"));
|
new SaveOffCommand("save-off"),
|
||||||
$this->register("pocketmine", new EffectCommand("effect"));
|
new SaveOnCommand("save-on"),
|
||||||
$this->register("pocketmine", new EnchantCommand("enchant"));
|
new SayCommand("say"),
|
||||||
$this->register("pocketmine", new ParticleCommand("particle"));
|
new SeedCommand("seed"),
|
||||||
$this->register("pocketmine", new GamemodeCommand("gamemode"));
|
new SetWorldSpawnCommand("setworldspawn"),
|
||||||
$this->register("pocketmine", new KillCommand("kill"));
|
new SpawnpointCommand("spawnpoint"),
|
||||||
$this->register("pocketmine", new SpawnpointCommand("spawnpoint"));
|
new StopCommand("stop"),
|
||||||
$this->register("pocketmine", new SetWorldSpawnCommand("setworldspawn"));
|
new TeleportCommand("tp"),
|
||||||
$this->register("pocketmine", new TeleportCommand("tp"));
|
new TellCommand("tell"),
|
||||||
$this->register("pocketmine", new TimeCommand("time"));
|
new TimeCommand("time"),
|
||||||
$this->register("pocketmine", new TimingsCommand("timings"));
|
new TimingsCommand("timings"),
|
||||||
$this->register("pocketmine", new TitleCommand("title"));
|
new TitleCommand("title"),
|
||||||
$this->register("pocketmine", new ReloadCommand("reload"));
|
new TransferServerCommand("transferserver"),
|
||||||
$this->register("pocketmine", new TransferServerCommand("transferserver"));
|
new VersionCommand("version"),
|
||||||
|
new WhitelistCommand("whitelist")
|
||||||
|
]);
|
||||||
|
|
||||||
if($this->server->getProperty("debug.commands", false)){
|
if($this->server->getProperty("debug.commands", false)){
|
||||||
$this->register("pocketmine", new StatusCommand("status"));
|
$this->registerAll("pocketmine", [
|
||||||
$this->register("pocketmine", new GarbageCollectorCommand("gc"));
|
new StatusCommand("status"),
|
||||||
$this->register("pocketmine", new DumpMemoryCommand("dumpmemory"));
|
new GarbageCollectorCommand("gc"),
|
||||||
|
new DumpMemoryCommand("dumpmemory")
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user