mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Humans can now do emotes (#4610)
added the following API methods: - Human::emote()
This commit is contained in:
@ -1841,9 +1841,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
$event->call();
|
||||
if(!$event->isCancelled()){
|
||||
$emoteId = $event->getEmoteId();
|
||||
foreach($this->getViewers() as $player){
|
||||
$player->getNetworkSession()->onEmote($this, $emoteId);
|
||||
}
|
||||
parent::emote($emoteId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user