mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Fixed a few errors in new Events
This commit is contained in:
parent
68abafef7a
commit
3ff8ddc652
@ -1043,7 +1043,7 @@ class Player extends RealHuman{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(EventHandler::callEvent(new Event\Player\PlayerGameModeChangeEvent((int) $gm)) === Event\Event::DENY){
|
if(EventHandler::callEvent(new Event\Player\PlayerGameModeChangeEvent($this, (int) $gm)) === Event\Event::DENY){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class BlockBreakEvent extends BlockEvent implements CancellableEvent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getItem(){
|
public function getItem(){
|
||||||
return $item;
|
return $this->item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getInstaBreak(){
|
public function getInstaBreak(){
|
||||||
|
@ -66,7 +66,7 @@ class BlockPlaceEvent extends BlockEvent implements CancellableEvent{
|
|||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getItem(){
|
public function getItem(){
|
||||||
return $item;
|
return $this->item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBlockReplaced(){
|
public function getBlockReplaced(){
|
||||||
|
@ -39,7 +39,7 @@ class PlayerGameModeChangeEvent extends PlayerEvent implements CancellableEvent{
|
|||||||
|
|
||||||
public function __construct(Player $player, $newGamemode){
|
public function __construct(Player $player, $newGamemode){
|
||||||
$this->player = $player;
|
$this->player = $player;
|
||||||
$this->gamemode = (int) $gamemode;
|
$this->gamemode = (int) $newGamemode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNewGamemode(){
|
public function getNewGamemode(){
|
||||||
|
@ -57,7 +57,7 @@ class PlayerInteractEvent extends PlayerEvent implements CancellableEvent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getItem(){
|
public function getItem(){
|
||||||
return $item;
|
return $this->item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBlock(){
|
public function getBlock(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user