Added world teleporting

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-15 17:29:55 +02:00
parent 7de0835ad9
commit 33bd66c1da
6 changed files with 19 additions and 14 deletions

View File

@@ -197,11 +197,9 @@ class ConsoleAPI{
$end = strpos($line, " ");
if($end === false){
$end = strlen($line);
}else{
++$end;
}
$cmd = strtolower(substr($line, 0, $end - 1));
$params = substr($line, $end);
$cmd = strtolower(substr($line, 0, $end));
$params = substr($line, $end + 1);
if(isset($this->alias[$cmd])){
$this->run($this->alias[$cmd] . " " .$params, $issuer, $cmd);