mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Correct teleport message
This commit is contained in:
@@ -189,7 +189,7 @@ class PlayerAPI{
|
|||||||
$output .= "Usage: /$cmd [target player] <destination player>\n";
|
$output .= "Usage: /$cmd [target player] <destination player>\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if($this->teleport($name, $target)){
|
if($this->teleport($name, $target) !== false){
|
||||||
$output .= "\"$name\" teleported to \"$target\"\n";
|
$output .= "\"$name\" teleported to \"$target\"\n";
|
||||||
}else{
|
}else{
|
||||||
$output .= "Couldn't teleport.\n";
|
$output .= "Couldn't teleport.\n";
|
||||||
|
Reference in New Issue
Block a user