Пример #1
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("load", ["usage" => mc::_("<world|--all>"), "help" => mc::_("Load worlds"), "permission" => "mw.cmd.world.load", "aliases" => ["ld"]]);
     $this->enableSCmd("unload", ["usage" => mc::_("[-f] <world>"), "help" => mc::_("Attempt to unload worlds"), "permission" => "mw.cmd.world.load"]);
 }
Пример #2
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("tp", ["usage" => mc::_("[player] <world>"), "help" => mc::_("Teleport across worlds"), "permission" => "mw.cmd.tp", "aliases" => ["teleport"]]);
 }
Пример #3
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("default", ["usage" => mc::_("<world>"), "help" => mc::_("Changes default world"), "permission" => "mw.cmd.default"]);
 }
Пример #4
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("lvdat", ["usage" => mc::_("<world> [attr=value]"), "help" => mc::_("Change level.dat values"), "permission" => "mw.cmd.lvdat", "aliases" => ["lv"]]);
     $this->enableSCmd("fixname", ["usage" => mc::_("<world>"), "help" => mc::_("Fixes world name"), "permission" => "mw.cmd.lvdat", "aliases" => ["fix"]]);
 }
Пример #5
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("create", ["usage" => mc::_("<world> [seed] [generator] [preset]"), "help" => mc::_("Creates a new world"), "permission" => "mw.cmd.world.create", "aliases" => ["new"]]);
 }
Пример #6
0
 /**
  * @param PluginBase $owner - plugin that owns this command
  */
 public function __construct($owner, $fmt = "/%s %s %s")
 {
     parent::__construct($owner);
     $this->enableSCmd("help", ["aliases" => ["?"]]);
     $this->fmt = $fmt;
 }
Пример #7
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("ls", ["usage" => mc::_("[world]"), "help" => mc::_("List world information"), "permission" => "mw.cmd.ls", "aliases" => ["list", "info"]]);
 }
Пример #8
0
 public function __construct($owner)
 {
     parent::__construct($owner);
     $this->enableSCmd("generators", ["usage" => "", "help" => mc::_("List world generators"), "permission" => "mw.cmd.world.create", "aliases" => ["gen", "genlst"]]);
 }