From 4d2835a37aa4a3a6ee45595ee550005bebdcd283 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 19 Mar 2013 18:39:29 +0100 Subject: [PATCH] Swapped X and Z --- src/API/PlayerAPI.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index 913613a4c..f5e455c38 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -133,14 +133,14 @@ class PlayerAPI{ case "tppos": if(!isset($params[3]) and isset($params[2]) and isset($params[1]) and isset($params[0]) and ($issuer instanceof Player)){ $name = $issuer->username; - $z = (float) $params[0]; + $x = (float) $params[0]; $y = (float) $params[1]; - $x = (float) $params[2]; + $z = (float) $params[2]; }elseif(isset($params[3]) and isset($params[2]) and isset($params[1]) and isset($params[0])){ $name = $params[0]; - $z = (float) $params[1]; + $x = (float) $params[1]; $y = (float) $params[2]; - $x = (float) $params[3]; + $z = (float) $params[3]; }else{ $output .= "Usage: /tp [player] \n"; break;