mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Posibility of changing data for handlers, and canceling it
This commit is contained in:
@ -39,9 +39,9 @@ class BlockAPI{
|
||||
}
|
||||
|
||||
public function init(){
|
||||
$this->server->addHandler("world.block.update", array($this, "updateBlockRemote"));
|
||||
$this->server->addHandler("player.block.break", array($this, "blockBreak"));
|
||||
$this->server->addHandler("player.block.action", array($this, "blockAction"));
|
||||
$this->server->addHandler("world.block.update", array($this, "updateBlockRemote"), 1);
|
||||
$this->server->addHandler("player.block.break", array($this, "blockBreak"), 1);
|
||||
$this->server->addHandler("player.block.action", array($this, "blockAction"), 1);
|
||||
}
|
||||
|
||||
public function blockBreak($data, $event){
|
||||
|
Reference in New Issue
Block a user