mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added world teleporting
This commit is contained in:
parent
7de0835ad9
commit
33bd66c1da
6 changed files with 19 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue