Example #1
0
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("banitem", ["usage" => mc::_("[id] ..."), "help" => mc::_("Ban an item"), "permission" => "wp.cmd.banitem"]);
     $this->enableSCmd("unbanitem", ["usage" => mc::_("[id] ..."), "help" => mc::_("Unban item"), "permission" => "wp.cmd.banitem"]);
 }
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("unbreakable", ["usage" => mc::_("[id] [id]"), "help" => mc::_("Set block to unbreakable status"), "permission" => "wp.cmd.unbreakable", "aliases" => ["ubab"]]);
     $this->enableSCmd("breakable", ["usage" => mc::_("[id] [id]"), "help" => mc::_("Remove unbreakable status from block"), "permission" => "wp.cmd.unbreakable", "aliases" => ["bab"]]);
 }
Example #3
0
 public function __construct(Plugin $plugin, $cfg)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->ticks = $cfg["ticks"];
     $this->auto = $cfg["auto-motd"];
     $this->enableSCmd("motd", ["usage" => mc::_("[text]"), "help" => mc::_("Edits world motd text"), "permission" => "wp.cmd.wpmotd"]);
     $this->enableCmd("motd", ["description" => mc::_("Shows world motd text"), "usage" => "/motd [world]", "permission" => "wp.motd"]);
 }
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("add", ["usage" => mc::_("<user>"), "help" => mc::_("Add <user> to authorized list"), "permission" => "wp.cmd.addrm"]);
     $this->enableSCmd("rm", ["usage" => mc::_("<user>"), "help" => mc::_("Remove <user> from authorized list"), "permission" => "wp.cmd.addrm"]);
     $this->enableSCmd("unlock", ["usage" => "", "help" => mc::_("Unprotects world"), "permission" => "wp.cmd.protect", "aliases" => ["unprotect", "open"]]);
     $this->enableSCmd("lock", ["usage" => "", "help" => mc::_("Locked\n\tNobody (including op) can build"), "permission" => "wp.cmd.protect"]);
     $this->enableSCmd("protect", ["usage" => "", "help" => mc::_("Only authorized (or op) can build"), "permission" => "wp.cmd.protect"]);
 }
Example #5
0
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("gm", ["usage" => mc::_("[value]"), "help" => mc::_("Sets the world game mode"), "permission" => "wp.cmd.gm", "aliases" => ["gamemode"]]);
 }
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("border", ["usage" => mc::_("[range|none|x1 z1 x2 z2]"), "help" => mc::_("Creates a border defined\n\tby x1,z1 to x2,z2\n\tUse [none] to remove\n\tIf [range] is specified the border is\n\t-range,-range to range,range\n\taround the spawn point"), "permission" => "wp.cmd.border"]);
 }
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
 }
Example #8
0
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("pvp", ["usage" => mc::_("[on|off|spawn-off]"), "help" => mc::_("Control PvP in world"), "permission" => "wp.cmd.pvp"]);
 }
Example #9
0
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("noexplode", ["usage" => mc::_("[off|world|spawn]"), "help" => mc::_("Disable explosions in world or spawn area"), "permission" => "wp.cmd.noexplode", "aliases" => ["notnt"]]);
 }
Example #10
0
 public function __construct(Plugin $plugin)
 {
     parent::__construct($plugin);
     $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
     $this->enableSCmd("max", ["usage" => mc::_("[value]"), "help" => mc::_("Limits number of players\n\tin a world to [value]\n\tuse 0 or -1 to remove limits"), "permission" => "wp.cmd.limit", "aliases" => ["limit"]]);
 }
Example #11
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("ls", ["usage" => mc::_("[world]"), "help" => mc::_("Show protections on worlds"), "permission" => "wp.cmd.info", "aliases" => ["info"]]);
 }