diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index e6533348..3bfdaba9 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -189,7 +189,7 @@ class PlayerAPI{ $output .= "Usage: /$cmd [target player] \n"; break; } - if($this->teleport($name, $target)){ + if($this->teleport($name, $target) !== false){ $output .= "\"$name\" teleported to \"$target\"\n"; }else{ $output .= "Couldn't teleport.\n";