I want to ban players when they run a certain command.. here's my thing so far.. addBan was guessed PHP: $player = $event->getPlayer(); $player->addBan();
Ummm https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Player.php#L352-#L359 @kazuya Please use Player->setBanned() instead
It is just a convenience method. If you want to customize more of the ban, use the BanList methods instead.