/**
  * @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);
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 7
0
 /**
  * @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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 9
0
 /**
  * @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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 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");
 }