Reduce the number of lookups if a cracked player already exists
This commit is contained in:
1 parent
22dcc50950
commit
a6348766b3
3 files changed
+14
-11
No files matched your search
+2
-2
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user