Added /give, /gamemode

This commit is contained in:
Shoghi Cervantes
2014-04-02 05:59:26 +02:00
parent 7cd29f0fcf
commit df3e456162
4 changed files with 183 additions and 76 deletions

View File

@@ -27,6 +27,8 @@ use pocketmine\command\defaults\BanListCommand;
use pocketmine\command\defaults\DefaultGamemodeCommand;
use pocketmine\command\defaults\DeopCommand;
use pocketmine\command\defaults\DifficultyCommand;
use pocketmine\command\defaults\GamemodeCommand;
use pocketmine\command\defaults\GiveCommand;
use pocketmine\command\defaults\HelpCommand;
use pocketmine\command\defaults\KickCommand;
use pocketmine\command\defaults\ListCommand;
@@ -86,6 +88,8 @@ class SimpleCommandMap implements CommandMap{
$this->register("pocketmine", new SaveOnCommand("save-on"));
$this->register("pocketmine", new SaveOffCommand("save-off"));
$this->register("pocketmine", new SaveCommand("save-all"));
$this->register("pocketmine", new GiveCommand("give"));
$this->register("pocketmine", new GamemodeCommand("gamemode"));
}