Reduce the number of lookups if a cracked player already exists

This commit is contained in:
games647 committed 2016-06-20 16:29:39 +02:00
1 parent 22dcc50950
commit a6348766b3
3 files changed
+14 -11

No files matched your search

@@ -40,8 +40,8 @@ public class AsyncPremiumCheck implements Runnable {
}
if (premiumUUID == null
|| checkNameChange(premiumUUID, connection, username)
|| checkPremiumName(username, connection, profile)) {
|| !checkNameChange(premiumUUID, connection, username)
|| !checkPremiumName(username, connection, profile)) {
//nothing detected the player as premium -> start a cracked session
plugin.getSession().put(connection, new BungeeLoginSession(username, false, profile));
}