/**
  * @param BaseAPI $api
  * @param string $name
  * @param string $description
  * @param null|string $usageMessage
  * @param bool|null|string $consoleUsageMessage
  * @param array $aliases
  */
 public function __construct(BaseAPI $api, $name, $description = "", $usageMessage = null, $consoleUsageMessage = true, array $aliases = [])
 {
     parent::__construct($api, $name, $description, $usageMessage, $consoleUsageMessage, $aliases);
     // Special part :D
     $commandMap = $api->getServer()->getCommandMap();
     $command = $commandMap->getCommand($name);
     $command->setLabel($name . "_disabled");
     $command->unregister($commandMap);
 }
Example #2
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "nuke", "Thin carpet of bomb", "/nuke [player]", null);
     $this->setPermission("essentials.nuke");
 }
Example #3
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "tpahere", "Request a player to teleport to your position", "<player>", false);
     $this->setPermission("essentials.tpahere");
 }
Example #4
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "jump", "Teleport you to the block you're looking at", "/jump", false, ["j", "jumpto"]);
     $this->setPermission("essentials.jump");
 }
Example #5
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "heal", "Heal yourself or other player", "[player]");
     $this->setPermission("essentials.heal.use");
 }
Example #6
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "seen", "See player's last played time", "/seen <player>");
     $this->setPermission("essentials.seen");
 }
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "clearinventory", "Clear your/other's inventory", "[player]", true, ["ci", "clean", "clearinvent"]);
     $this->setPermission("essentials.clearinventory.use");
 }
Example #8
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "fly", "Fly in Survival or Adventure mode!", "/fly [player]", null);
     $this->setPermission("essentials.fly.use");
 }
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "essentials", "Get current Essentials version", "[update <check|install>]", true, ["essentials", "ess", "esspe"]);
     $this->setPermission("essentials.essentials");
 }
Example #10
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "near", "List the players near to you", "/near [player]", null, ["nearby"]);
     $this->setPermission("essentials.near.use");
 }
Example #11
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "jump", "Teleport you to the block you're looking at", null, false, ["j", "jumpto"]);
     $this->setPermission("essentials.jump");
 }
Example #12
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "top", "Teleport to the highest block above you", null, false);
     $this->setPermission("essentials.top");
 }
Example #13
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "kit", "Get a pre-defined kit!", "[name] [player]", "[<name> <player>]", ["kits"]);
     $this->setPermission("essentials.kit.use");
 }
Example #14
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "sethome", "Create or update a home position", "/sethome <name>", false, ["createhome"]);
     $this->setPermission("essentials.sethome");
 }
Example #15
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "gamemode", "Change player gamemode", "/gamemode <mode> [player]", null, ["gm", "gma", "gmc", "gms", "gmt", "adventure", "creative", "survival", "spectator", "viewer"]);
     $this->setPermission("essentials.gamemode");
 }
Example #16
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "sudo", "Run a command as another player", "<player> <command line|c:<chat message>");
     $this->setPermission("essentials.sudo.use");
 }
Example #17
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "setspawn", "Change your server main spawn point", null, false);
     $this->setPermission("essentials.setspawn");
 }
Example #18
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "back", "Teleport to your previous location", "/back", false, ["return"]);
     $this->setPermission("essentials.back");
 }
Example #19
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "powertool", "Toogle PowerTool on the item you're holding", "/powertool <command|c:chat macro> <arguments...>", false, ["pt"]);
     $this->setPermission("essentials.powertool.use");
 }
Example #20
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "back", "Teleport to your previous location", null, false, ["return"]);
     $this->setPermission("essentials.back.use");
 }
Example #21
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "getpos", "Get your/other's position", "[player]", true, ["coords", "position", "whereami", "getlocation", "getloc"]);
     $this->setPermission("essentials.getpos.use");
 }
Example #22
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "antioch", "Holy hand grenade", null, false, ["grenade", "tnt"]);
     $this->setPermission("essentials.antioch");
 }
Example #23
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "tpaccept", "Accept a teleport request", "/tpaccept [player]", false, ["tpyes"]);
     $this->setPermission("essentials.tpaccept");
 }
Example #24
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "burn", "Set a player on fire", "<player> <seconds>");
     $this->setPermission("essentials.burn");
 }
Example #25
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "hat", "Get some new cool headgear", "[remove]", false, ["head"]);
     $this->setPermission("essentials.hat");
 }
Example #26
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "claim", "Toogle Land Claim ability on the item you're holding", "<command|c:chat macro> <arguments...>", false, ["pt"]);
     $this->setPermission("essentials.landclaim.use");
 }
Example #27
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "eco", "Sets the balance of a player", "<give|take|set|reset> <player> [amount]", true, ["economy"]);
     $this->setPermission("essentials.eco.use");
 }
Example #28
0
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "home", "Teleport to your home", "<name>", false, ["homes"]);
     $this->setPermission("essentials.home.use");
 }
Example #29
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "tpa", "Asks the player if you can telepor to them", "/tpa <player>", false, ["call", "tpask"]);
     $this->setPermission("essentials.tpa");
 }
Example #30
0
 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "heal", "Heal yourself or other player", "/heal [player]");
     $this->setPermission("essentials.heal.use");
 }