From b481c2683903b2cbaa259c455099d37889d8dab6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 19 May 2013 13:32:27 +0200 Subject: [PATCH] Fixed teleporting to worlds with spaces --- src/API/PlayerAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index d4e851738..c68dc7fdf 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -192,7 +192,7 @@ class PlayerAPI{ } break; case "tp": - if(count($params) <= 2 or substr($params[0], 0, 2) === "w:"){ + if(count($params) <= 2 or substr($params[0], 0, 2) === "w:" or substr($params[1], 0, 2) === "w:"){ if((!isset($params[1]) or substr($params[0], 0, 2) === "w:") and isset($params[0]) and ($issuer instanceof Player)){ $name = $issuer->username; $target = implode(" ", $params);