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

@ -321,7 +321,7 @@ class BlockAPI{
return false;
}
if($item->isActivable === true and $item->onActivate($player, $block, $target, $face, $fx, $fy, $fz)){
if($item->isActivable === true and $item->onActivate($player->level, $player, $block, $target, $face, $fx, $fy, $fz)){
return $this->cancelAction($block, $player);
}

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);

View file

@ -60,7 +60,7 @@ class ServerAPI{
$this->config = new Config(DATA_PATH . "server.properties", CONFIG_PROPERTIES, array(
"server-name" => "Minecraft PE Server",
"description" => "Server made using PocketMine-MP",
"motd" => "Welcome @username to this server!",
"motd" => "Welcome @player to this server!",
"server-invisible" => false,
"server-ip" => "0.0.0.0",
"server-port" => 19132,