mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed typo
This commit is contained in:
parent
7dbf421e99
commit
14ab386b0f
@ -54,7 +54,6 @@ class BanAPI{
|
||||
$this->server->api->console->alias("pardon", "ban remove");
|
||||
$this->server->api->console->alias("pardon-ip", "banip remove");
|
||||
$this->server->addHandler("console.command", array($this, "permissionsCheck"), 1);
|
||||
$this->cmdWhitelist("help");
|
||||
}
|
||||
|
||||
public function cmdWhitelist($cmd){
|
||||
|
@ -47,6 +47,7 @@ class ConsoleAPI{
|
||||
$this->register("say", "Broadcast a message", array($this, "defaultCommands"));
|
||||
$this->register("save-all", "Save pending changes to disk", array($this, "defaultCommands"));
|
||||
$this->register("stop", "Stops the server gracefully", array($this, "defaultCommands"));
|
||||
$this->server->api->ban->cmdWhitelist("help");
|
||||
}
|
||||
|
||||
function __destruct(){
|
||||
|
@ -755,7 +755,7 @@ class Player{
|
||||
if(($this->entity instanceof Entity) and $data["counter"] > $this->lastMovement){
|
||||
$this->lastMovement = $data["counter"];
|
||||
if($this->server->api->handle("player.move", $this->entity) === false){
|
||||
$this->teleport(new Vecotr3($this->entity->x, $this->entity->y, $this->entity->z), $this->entity->yaw, $this->entity->pitch);
|
||||
$this->teleport(new Vector3($this->entity->x, $this->entity->y, $this->entity->z), $this->entity->yaw, $this->entity->pitch);
|
||||
}else{
|
||||
$this->entity->setPosition($data["x"], $data["y"], $data["z"], $data["yaw"], $data["pitch"]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user