mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Swapped X and Z
This commit is contained in:
parent
e1c5d965a0
commit
4d2835a37a
1 changed files with 4 additions and 4 deletions
|
|
@ -133,14 +133,14 @@ class PlayerAPI{
|
||||||
case "tppos":
|
case "tppos":
|
||||||
if(!isset($params[3]) and isset($params[2]) and isset($params[1]) and isset($params[0]) and ($issuer instanceof Player)){
|
if(!isset($params[3]) and isset($params[2]) and isset($params[1]) and isset($params[0]) and ($issuer instanceof Player)){
|
||||||
$name = $issuer->username;
|
$name = $issuer->username;
|
||||||
$z = (float) $params[0];
|
$x = (float) $params[0];
|
||||||
$y = (float) $params[1];
|
$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])){
|
}elseif(isset($params[3]) and isset($params[2]) and isset($params[1]) and isset($params[0])){
|
||||||
$name = $params[0];
|
$name = $params[0];
|
||||||
$z = (float) $params[1];
|
$x = (float) $params[1];
|
||||||
$y = (float) $params[2];
|
$y = (float) $params[2];
|
||||||
$x = (float) $params[3];
|
$z = (float) $params[3];
|
||||||
}else{
|
}else{
|
||||||
$output .= "Usage: /tp [player] <x> <y> <z>\n";
|
$output .= "Usage: /tp [player] <x> <y> <z>\n";
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue