mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 06:39:51 +00:00
Fixed teleporting to worlds with spaces
This commit is contained in:
parent
e163223134
commit
b481c26839
@ -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…
x
Reference in New Issue
Block a user