Correct teleport message

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-16 17:14:02 +02:00
parent 3cc4546f93
commit 7d49847ae7

View File

@@ -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";