public function __construct($owner) { parent::__construct($owner); $this->enableCmd("servicemode", ["description" => mc::_("Enter/Exit servicemode"), "usage" => mc::_("/servicemode [on|off [message]]"), "aliases" => ["srvmode", "srmode"], "permission" => "gb.cmd.servicemode"]); $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); $this->mode = false; }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("clearinv", ["description" => mc::_("Clear player's inventory"), "usage" => mc::_("/clearinv [player]"), "permission" => "gb.cmd.clearinv"]); $this->enableCmd("clearhotbar", ["description" => mc::_("Clear player's hotbar"), "usage" => mc::_("/clearhotbar [player]"), "aliases" => ["chb"], "permission" => "gb.cmd.clearhotbar"]); $this->enableCmd("rminv", ["description" => mc::_("Remove item from player's inventory"), "usage" => mc::_("/rminv [player] <item> [quantity]"), "permission" => "gb.cmd.rminv"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("reop", ["description" => mc::_("Temporarily deops administrators"), "usage" => mc::_("/reop [player]"), "permission" => "gb.cmd.reop"]); $this->reops = []; $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("spectator", ["description" => mc::_("Make player an spectator"), "usage" => mc::_("/spectator [player]"), "aliases" => ["spc"], "permission" => "gb.cmd.spectator"]); $this->enableCmd("unspectator", ["description" => mc::_("Reverses the effects of /spectator"), "usage" => mc::_("/unspectator [player]"), "aliases" => ["unspc"], "permission" => "gb.cmd.spectator"]); $this->watchers = []; $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("mute", ["description" => mc::_("mute player"), "usage" => mc::_("/mute [player]"), "permission" => "gb.cmd.mute"]); $this->enableCmd("unmute", ["description" => mc::_("unmute player"), "usage" => mc::_("/unmute [player]"), "permission" => "gb.cmd.mute"]); $this->mutes = []; $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("gmc", ["description" => mc::_("switch gamemode to creative"), "usage" => mc::_("/gmc"), "permission" => "gb.cmd.gmc"]); $this->enableCmd("gms", ["description" => mc::_("switch gamemode to survival"), "usage" => mc::_("/gms"), "permission" => "gb.cmd.gms"]); $this->enableCmd("gma", ["description" => mc::_("switch gamemode to adventure"), "usage" => mc::_("/gma"), "permission" => "gb.cmd.gma"]); $this->enableCmd("gmspc", ["description" => mc::_("switch gamemode to spectator"), "usage" => mc::_("/gmspc"), "permission" => "gb.cmd.gmspc"]); }
public function __construct($owner, $cfg) { parent::__construct($owner); $this->hard = $cfg["hard-freeze"]; $this->enableCmd("freeze", ["description" => mc::_("freeze player"), "usage" => mc::_("/freeze [--hard|--soft] [player]"), "permission" => "gb.cmd.freeze"]); $this->enableCmd("thaw", ["description" => mc::_("thaw player"), "usage" => mc::_("/thaw [player]"), "aliases" => ["unfreeze"], "permission" => "gb.cmd.freeze"]); $this->frosties = []; $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->chat = true; $this->enableCmd("clearchat", ["description" => mc::_("clears your chat window"), "usage" => mc::_("/clearchat"), "permission" => "gb.cmd.clearchat"]); $this->enableCmd("chat-on", ["description" => mc::_("starts chat"), "usage" => mc::_("/chat-on [player|-l|-g]"), "permission" => "gb.cmd.togglechat"]); $this->enableCmd("chat-off", ["description" => mc::_("stops chat"), "usage" => mc::_("/chat-off [player|-l|-g]"), "permission" => "gb.cmd.togglechat"]); $this->enableCmd("nick", ["description" => mc::_("change displayed name"), "usage" => mc::_("/nick <new-name>"), "permission" => "gb.cmd.nick"]); $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("followers", ["description" => mc::_("List leads and followers"), "usage" => mc::_("/followers"), "permission" => "gb.cmd.follow;gb.cmd.followme"]); $this->enableCmd("follow", ["description" => mc::_("pursue a player"), "usage" => mc::_("/follow [player]"), "permission" => "gb.cmd.follow"]); $this->enableCmd("follow-off", ["description" => mc::_("stop following a player"), "usage" => mc::_("/follow-off"), "permission" => "gb.cmd.follow"]); $this->enableCmd("followme", ["description" => mc::_("drag player with you"), "usage" => mc::_("/followme [player]"), "permission" => "gb.cmd.followme"]); $this->enableCmd("followme-off", ["description" => mc::_("stop dragging a player"), "usage" => mc::_("/followme-off [player]"), "permission" => "gb.cmd.followme"]); $this->leaders = []; $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("opms", ["description" => mc::_("Send message to ops"), "usage" => mc::_("/opms <message>"), "permission" => "gb.cmd.opms"]); $this->enableCmd("rpt", ["description" => mc::_("Report issues to ops"), "usage" => mc::_("/rpt [message|read|clear <all|##>]"), "permission" => "gb.cmd.rpt"]); $this->rpt = new Config($this->owner->getDataFolder() . "reports.yml", Config::YAML, [0, []]); $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); list($id, $rpt) = $this->rpt->getAll(); if (count($rpt)) { $this->owner->getLogger()->info(TextFormat::RED . mc::n(mc::_("One report on file"), mc::_("%1% reports on file", count($rpt)), count($rpt))); } }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("skin", ["description" => mc::_("Manage skins on the server"), "usage" => mc::_("/skin [player] [save|load|ls] [name]"), "permission" => "gb.cmd.skin"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("setarmor", ["description" => mc::_("Set armor (even in creative)"), "usage" => mc::_("/setarmor [player] [piece] <type>"), "permission" => "gb.cmd.setarmor"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("entities", ["description" => mc::_("Manage entities"), "usage" => mc::_("/entities [tile|info|rm|sign#|count|nuke] [args]"), "aliases" => ["et"], "permission" => "gb.cmd.entities"]); }
public function __construct($owner, $cfg) { parent::__construct($owner); $this->servers = $cfg; $this->enableCmd("rcon", ["description" => mc::_("RCON client"), "usage" => mc::_("/rcon [--add|--rm|--ls|id] <command>"), "permission" => "gb.cmd.rcon"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("shield", ["description" => mc::_("makes player invulnerable"), "usage" => mc::_("/shield"), "permission" => "gb.cmd.shield"]); $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("ops", ["description" => mc::_("show ops and their on-line status"), "usage" => mc::_("/ops"), "permission" => "gb.cmd.ops"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("players", ["description" => mc::_("show players connected and locations"), "usage" => mc::_("/players"), "aliases" => ["who"], "permission" => "gb.cmd.players"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("crash", ["description" => mc::_("manage crash files"), "usage" => mc::_("/crash [count|clean|show|ls]"), "permission" => "gb.cmd.crash"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("pushtp", ["description" => mc::_("Save your current position when teleporting"), "usage" => mc::_("/pushtp [player|position|world]"), "permission" => "gb.cmd.pushpoptp"]); $this->enableCmd("poptp", ["description" => mc::_("Returns to previously saved coordinates"), "usage" => mc::_("/poptp"), "permission" => "gb.cmd.pushpoptp"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("blowup", ["description" => mc::_("Explode a player"), "usage" => mc::_("/blowup <player> [yield|magic|normal]"), "permission" => "gb.cmd.blowup"]); }
public function __construct($owner) { parent::__construct($owner); $this->perms = []; $this->enableCmd("perm", ["description" => mc::_("change permissions"), "usage" => mc::_("/perm <player> <dump|permission> [true|false]"), "permission" => "gb.cmd.permmgr"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("get", ["description" => mc::_("Shortcut to /give me"), "usage" => mc::_("/get <item[:damage]> [amount]"), "permission" => "gb.cmd.get"]); $this->enableCmd("gift", ["description" => mc::_("Alternate /give implementation"), "usage" => mc::_("/gift <player <item[:damage]>> [amount]"), "permission" => "gb.cmd.get"]); }
public function __construct($owner) { parent::__construct($owner); $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner); $this->enableCmd("slay", ["description" => mc::_("kill a player with optional message"), "usage" => mc::_("/slay <player> [message]"), "permission" => "gb.cmd.slay"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("as", ["description" => mc::_("execute command as somebody else"), "usage" => mc::_("/as <player> <cmd>"), "aliases" => ["sudo"], "permission" => "gb.cmd.sudo"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("whois", ["description" => mc::_("show players detail info"), "usage" => "/whois <player>", "permission" => "gb.cmd.whois"]); }
public function __construct($owner, $cfg) { parent::__construct($owner); $this->servers = $cfg; $this->enableCmd("query", ["description" => mc::_("Query servers"), "usage" => mc::_("/query [add|rm|ls|list|info|plugins|players|summary] <opts>"), "permission" => "gb.cmd.query"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("reg", ["description" => mc::_("manage player registrations"), "usage" => mc::_("/reg [count|list [pattern]|rm [player]|since <when>]"), "permission" => "gb.cmd.regs"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("summon", ["description" => mc::_("Teleports players to your location"), "usage" => mc::_("/summon <player> [message]"), "permission" => "gb.cmd.summon"]); $this->enableCmd("dismiss", ["description" => mc::_("Dismisses summoned players"), "usage" => mc::_("/dismiss <player|--all>"), "permission" => "gb.cmd.summon"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("throw", ["description" => mc::_("Throw player up in the air"), "usage" => mc::_("/throw <player> [force]"), "permission" => "gb.cmd.throw"]); }
public function __construct($owner) { parent::__construct($owner); $this->enableCmd("showtimings", ["description" => mc::_("Show timings data (see /timings)"), "usage" => mc::_("/showtimings [t#]"), "aliases" => ["who"], "permission" => "gb.cmd.timings"]); }