mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Updated API methods to use less events
This commit is contained in:
parent
565cb9781c
commit
6b77a69302
3 changed files with 28 additions and 78 deletions
|
|
@ -34,9 +34,9 @@ class LevelAPI{
|
|||
}
|
||||
|
||||
public function init(){
|
||||
$this->server->event("player.block.break", array($this, "handle"));
|
||||
/*$this->server->event("player.block.break", array($this, "handle"));
|
||||
$this->server->event("player.block.place", array($this, "handle"));
|
||||
$this->server->event("player.block.update", array($this, "handle"));
|
||||
$this->server->event("player.block.update", array($this, "handle"));*/
|
||||
}
|
||||
|
||||
public function handle($data, $event){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue