From 8e37627bc0e583efaddff47928ee50df11a8de5a Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Thu, 6 Feb 2014 21:31:04 +1030 Subject: [PATCH] Change spawnpoint to setspawn for bukkit compatibility --- src/API/PlayerAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index 7ac216320..9ab2c5603 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -32,7 +32,7 @@ class PlayerAPI{ $this->server->api->console->register("kill", "", array($this, "commandHandler")); $this->server->api->console->register("gamemode", " [player]", array($this, "commandHandler")); $this->server->api->console->register("tp", "[target player] OR /tp [target player] ", array($this, "commandHandler")); - $this->server->api->console->register("spawnpoint", "[player] [x] [y] [z]", array($this, "commandHandler")); + $this->server->api->console->register("setspawn", "[player] [x] [y] [z]", array($this, "commandHandler")); $this->server->api->console->register("spawn", "", array($this, "commandHandler")); $this->server->api->console->register("ping", "", array($this, "commandHandler")); $this->server->api->console->alias("lag", "ping"); @@ -118,7 +118,7 @@ class PlayerAPI{ public function commandHandler($cmd, $params, $issuer, $alias){ $output = ""; switch($cmd){ - case "spawnpoint": + case "setspawn": if(!($issuer instanceof Player)){ $output .= "Please run this command in-game.\n"; break;