mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Fixed teleporting to worlds with spaces
This commit is contained in:
parent
e163223134
commit
b481c26839
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ class PlayerAPI{
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "tp":
|
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)){
|
if((!isset($params[1]) or substr($params[0], 0, 2) === "w:") and isset($params[0]) and ($issuer instanceof Player)){
|
||||||
$name = $issuer->username;
|
$name = $issuer->username;
|
||||||
$target = implode(" ", $params);
|
$target = implode(" ", $params);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue