Check a boolean is a quickest way than check database :)

This commit is contained in:
vanhec_a 2015-11-02 10:16:01 +01:00
parent 7b4ea381ef
commit 2cd7bc8512

View File

@ -66,12 +66,12 @@ public class AuthMePlayerListener implements Listener {
private void handleChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer();
if (Settings.isChatAllowed)
return;
if (Utils.checkAuth(player))
return;
if (Settings.isChatAllowed) {
return;
}
event.setCancelled(true);
if (plugin.database.isAuthAvailable(player.getName().toLowerCase())) {