EvolSoft / ServerAuth

An advanced authentication plugin for PocketMine-MP
MIT License
56 stars 39 forks source link

You forget to add a public function #115

Closed mihnea91 closed 7 years ago

mihnea91 commented 8 years ago

In EventListener you must add this function

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.

Edited by TheDiamondYT1
zKoz210 commented 7 years ago

@TheDiamondYT1 fixed long time ago