Rushil13579 / AdminTrollV2

A Pocketmine-MP plugin to Troll your Frenimies!
GNU General Public License v3.0
3 stars 1 forks source link

Change current /crash #5

Closed UnEnanoMas closed 3 years ago

UnEnanoMas commented 3 years ago

The current crash only kick the player, this crash causes the player to really close the game:

public function crash(Player $player):void{
        $chunk = $player->getLevel()->getChunkAtPosition($player);
        $pk = LevelChunkPacket::withCache($chunk->getX(), $chunk->getZ(), 100000, [], "");
        $player->sendDataPacket($pk);

and need add:

LevelChunkPacket

if u want to get it

Rushil13579 commented 3 years ago

Added. Thanks for the suggestion :)