作者:TBNRFrags246
项目:EssentialsP
/**
* @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);
}
作者:ZencraftYouTub
项目:EssentialsP
/**
* @param Loader $plugin
*/
public function __construct(Loader $plugin)
{
parent::__construct($plugin, "nuke", "Thin carpet of bomb", "/nuke [player]", null);
$this->setPermission("essentials.nuke");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:mwven
项目:WattzEssentialsP
/**
* @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");
}
作者:TBNRFrags246
项目:EssentialsP
/**
* @param BaseAPI $api
*/
public function __construct(BaseAPI $api)
{
parent::__construct($api, "heal", "Heal yourself or other player", "[player]");
$this->setPermission("essentials.heal.use");
}
作者:JungHyun345
项目:EssentialsP
/**
* @param Loader $plugin
*/
public function __construct(Loader $plugin)
{
parent::__construct($plugin, "seen", "See player's last played time", "/seen <player>");
$this->setPermission("essentials.seen");
}
作者:TBNRFrags246
项目:EssentialsP
/**
* @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");
}
作者:TBNRFrags246
项目:EssentialsP
/**
* @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");
}
作者:mwven
项目:WattzEssentialsP
/**
* @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");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:mwven
项目:WattzEssentialsP
/**
* @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");
}
作者:Jackboy32
项目:EssentialsP
/**
* @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");
}
作者:mwven
项目:WattzEssentialsP
/**
* @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");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:PrimusL
项目:EssentialsP
/**
* @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");
}
作者:TBNRFrags246
项目:EssentialsP
/**
* @param BaseAPI $api
*/
public function __construct(BaseAPI $api)
{
parent::__construct($api, "antioch", "Holy hand grenade", null, false, ["grenade", "tnt"]);
$this->setPermission("essentials.antioch");
}
作者:PrimusL
项目:EssentialsP
/**
* @param BaseAPI $api
*/
public function __construct(BaseAPI $api)
{
parent::__construct($api, "hat", "Get some new cool headgear", "[remove]", false, ["head"]);
$this->setPermission("essentials.hat");
}
作者:BalloonCham
项目:EssentialsP
/**
* @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");
}