I originally had my plugin set to join event but now some plugins that give players items will be removed. How can I get a code to remove players inventory when they leave? Any ideas?
Uh, I think code is work PHP: use pocketmine\event\player\PlayerQuitEvent;public function onQuit(PlayerQuitEvent $e){$p = $e->getPlayer();$p->getInventory()->clearAll();}