Added PlayerPostChunkSendEvent (#4937)

this is primarily useful for debugging plugins, but could also be useful for other things, such as spawning fake blocks, particles, etc.
This commit is contained in:
Dylan T
2022-05-17 15:40:01 +01:00
committed by GitHub
parent 8b1bd5b7ff
commit 8b8560a701
2 changed files with 46 additions and 0 deletions

View File

@ -65,6 +65,7 @@ use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerJumpEvent;
use pocketmine\event\player\PlayerKickEvent;
use pocketmine\event\player\PlayerMoveEvent;
use pocketmine\event\player\PlayerPostChunkSendEvent;
use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\event\player\PlayerRespawnEvent;
use pocketmine\event\player\PlayerToggleFlightEvent;
@ -785,6 +786,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->getNetworkSession()->notifyTerrainReady();
}
(new PlayerPostChunkSendEvent($this, $X, $Z))->call();
});
},
static function() : void{