Пример #1
0
 public function __construct($owner, $cfg)
 {
     parent::__construct($owner);
     $this->max = $cfg["max-commands"];
     PermUtils::add($this->owner, "gb.module.cmdsel", "use command selectors", "true");
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #2
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.whois", "view players details", "op");
     PermUtils::add($this->owner, "gb.cmd.whois.showip", "view players IP address", "op");
     $this->enableCmd("whois", ["description" => mc::_("show players detail info"), "usage" => "/whois <player>", "permission" => "gb.cmd.whois"]);
 }
Пример #3
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.skin", "Manage skins", "op");
     PermUtils::add($this->owner, "gb.cmd.skin.other", "Manage other's skins", "op");
     $this->enableCmd("skin", ["description" => mc::_("Manage skins on the server"), "usage" => mc::_("/skin [player] [save|load|ls|slim|thick|formats] [name]"), "permission" => "gb.cmd.skin"]);
 }
Пример #4
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.shield", "Allow players to become invulnverable", "op");
     $this->enableCmd("shield", ["description" => mc::_("makes player invulnerable"), "usage" => mc::_("/shield"), "permission" => "gb.cmd.shield"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #5
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.xyz", "xyz command", "true");
     PermUtils::add($this->owner, "gb.cmd.xyz.others", "xyz command on others", "op");
     $this->enableCmd("xyz", ["description" => mc::_("displays location and bearing"), "usage" => mc::_("/xyz [player]"), "permission" => "gb.cmd.xyz"]);
 }
Пример #6
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->aliases = [];
     PermUtils::add($this->owner, "gb.cmd.alias", "allow creating aliases", "op");
     $this->enableCmd("alias", ["description" => mc::_("Create a command alias"), "usage" => mc::_("/alias [-f] [alias [command]]"), "permission" => "gb.cmd.alias"]);
 }
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.iteminfo", "get info on item held", "true");
     PermUtils::add($this->owner, "gb.cmd.iteminfo.other", "item info of others", "op");
     $this->enableCmd("iteminfo", ["description" => mc::_("Get info on held item"), "usage" => mc::_("/iteminfo"), "permission" => "gb.cmd.iteminfo"]);
 }
Пример #8
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.back", "Allow players to return to place of death", "true");
     $this->enableCmd("back", ["description" => mc::_("returns to the place of demise"), "usage" => mc::_("/back"), "permission" => "gb.cmd.back"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #9
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.get", "get blocks", "op");
     $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"]);
 }
Пример #10
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.top", "top commnad", "op");
     PermUtils::add($this->owner, "gb.cmd.top.others", "top others commnad", "op");
     $this->enableCmd("top", ["description" => mc::_("Teleport player to top most block"), "usage" => mc::_("/top [player]"), "permission" => "gb.cmd.top"]);
 }
Пример #11
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.plenty", "Give players plenty of stuff", "op");
     $this->enableCmd("plenty", ["description" => mc::_("Make sure that player does not run out of stuff"), "usage" => mc::_("/plenty"), "permission" => "gb.cmd.plenty"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #12
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     PermUtils::add($this->owner, "gb.cmd.slay", "Allow slaying players", "op");
     $this->enableCmd("slay", ["description" => mc::_("kill a player with optional message"), "usage" => mc::_("/slay <player> [message]"), "permission" => "gb.cmd.slay"]);
 }
Пример #13
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.pushpoptp", "position stack", "op");
     $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"]);
 }
Пример #14
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.prefix", "Prefix command", "true");
     $this->enableCmd("prefix", ["description" => mc::_("Execute commands with prefix inserted"), "usage" => mc::_("/prefix [-n] <text>"), "permission" => "gb.cmd.prefix"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #15
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.setarmor", "Configure armor", "op");
     PermUtils::add($this->owner, "gb.cmd.setarmor.others", "Configure other's armor", "op");
     $this->enableCmd("setarmor", ["description" => mc::_("Set armor (even in creative)"), "usage" => mc::_("/setarmor [player] [piece] <quality>"), "permission" => "gb.cmd.setarmor"]);
 }
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.summon", "summon|dismmiss command", "op");
     $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"]);
 }
Пример #17
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.invisible", "invisibility power", "op");
     PermUtils::add($this->owner, "gb.cmd.invisible.inmune", "can see invisible players", "false");
     $this->enableCmd("invis", ["description" => mc::_("makes player invisible"), "usage" => mc::_("/invis"), "permission" => "gb.cmd.invisible"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #18
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->tasks = [];
     PermUtils::add($this->owner, "gb.cmd.after", "access command scheduler", "op");
     $this->enableCmd("after", ["description" => mc::_("schedule to run a command after x seconds"), "usage" => mc::_("/after <seconds> <command>|list|cancel <id>"), "permission" => "gb.cmd.after"]);
     $this->enableCmd("at", ["description" => mc::_("schedule to run a command at a certain time"), "usage" => mc::_("/at <time> <command>|list|cancel <id>"), "permission" => "gb.cmd.after"]);
 }
Пример #19
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.echo", "echo command", "true");
     PermUtils::add($this->owner, "gb.cmd.rem", "remark command", "true");
     $this->enableCmd("echo", ["description" => mc::_("display text"), "usage" => mc::_("/echo [text]"), "permission" => "gb.cmd.echo"]);
     $this->enableCmd("rem", ["description" => mc::_("don't display text"), "usage" => mc::_("/rem [text]"), "permission" => "gb.cmd.rem"]);
 }
Пример #20
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->limitPath = true;
     PermUtils::add($this->owner, "gb.cmd.pmscript", "access rc (pmscript) command", "op");
     $this->enableCmd("rc", ["description" => mc::_("Runs the given PMScript"), "usage" => mc::_("/rc <script> [args]"), "permission" => "gb.cmd.pmscript"]);
     $this->owner->getServer()->getScheduler()->scheduleDelayedTask(new PluginCallbackTask($this->owner, [$this, "autostart"], []), 5);
 }
Пример #21
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.seearmor", "View armor", "op");
     PermUtils::add($this->owner, "gb.cmd.seeinv", "View inventory", "op");
     $this->enableCmd("seeinv", ["description" => mc::_("show player's inventory"), "usage" => mc::_("/seeinv <player>"), "aliases" => ["invsee"], "permission" => "gb.cmd.seeinv"]);
     $this->enableCmd("seearmor", ["description" => mc::_("show player's armor"), "usage" => mc::_("/seearmor <player>"), "aliases" => ["armorsee"], "permission" => "gb.cmd.seearmor"]);
 }
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->perms = [];
     PermUtils::add($this->owner, "gb.cmd.permmgr", "Manipulate Permissions", "op");
     $this->enableCmd("perm", ["description" => mc::_("change permissions"), "usage" => mc::_("/perm <player> <dump|permission> [true|false]"), "permission" => "gb.cmd.permmgr"]);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Пример #23
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.reop", "Reop command", "true");
     PermUtils::add($this->owner, "gb.cmd.reop.others", "ReOp others", "op");
     $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);
 }
Пример #24
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.servicemode", "service mode command", "op");
     PermUtils::add($this->owner, "gb.servicemode.allow", "login when in service mode", "op");
     $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;
 }
Пример #25
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.mute", "mute/unmute players", "op");
     $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);
 }
Пример #26
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.query", "Query command", "true");
     PermUtils::add($this->owner, "gb.cmd.query.details", "View details (info, plugins)", "true");
     PermUtils::add($this->owner, "gb.cmd.query.players", "View players", "true");
     PermUtils::add($this->owner, "gb.cmd.query.players.showip", "View players server IP", "true");
     PermUtils::add($this->owner, "gb.cmd.query.list", "Query List sub command", "true");
     $this->enableCmd("query", ["description" => mc::_("Query servers"), "usage" => mc::_("/query [list|info|plugins|players|summary] <opts>"), "permission" => "gb.cmd.query"]);
 }
Пример #27
0
 public function __construct($owner, $cfg)
 {
     parent::__construct($owner);
     $this->hard = $cfg["hard-freeze"];
     PermUtils::add($this->owner, "gb.cmd.freeze", "freeze/thaw players", "op");
     $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);
 }
Пример #28
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.spectator", "Turn players into spectators", "op");
     $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);
     $this->owner->getLogger(mc::_("%1% is deprecated!", "spectator"));
 }
Пример #29
0
 public function __construct($owner, $cfg)
 {
     parent::__construct($owner);
     PermUtils::add($this->owner, "gb.cmd.log", "Allow players to enable logging", "op");
     PermUtils::add($this->owner, "gb.cmd.spy", "Allow players to enable spying", "op");
     PermUtils::add($this->owner, "gb.spy.privacy", "Players with this permission do not have logging/spying", "false");
     $this->enableCmd("log", ["description" => mc::_("enables server logging"), "usage" => mc::_("/log [on|off]"), "permission" => "gb.cmd.log"]);
     $this->enableCmd("spy", ["description" => mc::_("spy on player in-game"), "usage" => mc::_("/spy <status|start|stop> [player]"), "permission" => "gb.cmd.spy"]);
     $this->spy = new SpySession($this->owner, $cfg["privacy"], "gb.spy.privacy", $cfg["notice"]);
 }
Пример #30
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->listener = null;
     $this->tracers = null;
     $this->timer_short = 10;
     $this->timer_long = 60;
     $this->timer_ticks = 600;
     $this->timerTask = null;
     PermUtils::add($this->owner, "gb.cmd.tracer", "access event tracing", "op");
     $this->enableCmd("trace", ["description" => mc::_("Event tracing functionality"), "usage" => mc::_("/trace [options]"), "permission" => "gb.cmd.tracer", "aliases" => ["tr"]]);
 }