public function onBlockBreak(BlockBreakEvent $event){
if($this->plugin->getConfig()->getAll()["block-all-events"]){
if(!ServerAuth::getAPI()->isPlayerAuthenticated($event->getPlayer())){
$event->setCancelled(true);
without it every man who eneter with name of other player, is able to break blocks although the account isn't logged in.
In EventListener you must add this function
without it every man who eneter with name of other player, is able to break blocks although the account isn't logged in.
Edited by TheDiamondYT1