How can I create a WorldBorder using PocketMine-MP?

I’m trying to make a world border by getting player coordinate and stopping them from moving past that coordinate. What should I do? Using Pocketmine 4.0.0 I’ve tried to find a method to get the coordinates but I don’t know what to do. >Solution : You can use the PlayerMoveEvent. use pocketmine\event\player\PlayerMoveEvent; public function onPlayerMove(PlayerMoveEvent… Read More How can I create a WorldBorder using PocketMine-MP?