diff --git a/ServerAuth/plugin.yml b/ServerAuth/plugin.yml index 0352424..ad22b37 100644 --- a/ServerAuth/plugin.yml +++ b/ServerAuth/plugin.yml @@ -1,6 +1,6 @@ name: ServerAuth main: ServerAuth\ServerAuth -version: "2.12" +version: "2.13" api: [1.11.0] load: STARTUP author: EvolSoft diff --git a/ServerAuth/src/ServerAuth/Commands/ChangePassword.php b/ServerAuth/src/ServerAuth/Commands/ChangePassword.php index ce3ccb1..eb9b4bd 100644 --- a/ServerAuth/src/ServerAuth/Commands/ChangePassword.php +++ b/ServerAuth/src/ServerAuth/Commands/ChangePassword.php @@ -1,7 +1,7 @@ plugin->getConfig()->getAll()["block-all-events"]){ - if(!ServerAuth::getAPI()->isPlayerAuthenticated($event->getPlayer())){ - $event->setCancelled(true); - } - } - } - public function onDropItem(PlayerDropItemEvent $event){ if($this->plugin->getConfig()->getAll()["block-all-events"]){ if(!ServerAuth::getAPI()->isPlayerAuthenticated($event->getPlayer())){ diff --git a/ServerAuth/src/ServerAuth/Events/ServerAuthAuthenticateEvent.php b/ServerAuth/src/ServerAuth/Events/ServerAuthAuthenticateEvent.php index 9ed85e3..0d1dc3c 100644 --- a/ServerAuth/src/ServerAuth/Events/ServerAuthAuthenticateEvent.php +++ b/ServerAuth/src/ServerAuth/Events/ServerAuthAuthenticateEvent.php @@ -1,7 +1,7 @@