Don't cancel re-allowed connections unless the cancel was made by LP

This commit is contained in:
Luck
2017-06-26 21:39:59 +01:00
Unverified
parent fa0b66c2dc
commit 5cd5186092
3 changed files with 0 additions and 43 deletions
@@ -72,13 +72,6 @@ public class SpongeListener {
final GameProfile p = e.getProfile();
/* the player was denied entry to the server before this priority.
log this, so we can handle appropriately later. */
if (e.isCancelled()) {
deniedAsyncLogin.add(p.getUniqueId());
return;
}
/* either the plugin hasn't finished starting yet, or there was an issue connecting to the DB, performing file i/o, etc.
we don't let players join in this case, because it means they can connect to the server without their permissions data.
some server admins rely on negating perms to stop users from causing damage etc, so it's really important that
@@ -147,11 +140,6 @@ public class SpongeListener {
final GameProfile player = e.getProfile();
/* the player was denied entry to the server before this priority. */
if (e.isCancelled()) {
return;
}
final User user = plugin.getUserManager().getIfLoaded(plugin.getUuidCache().getUUID(player.getUniqueId()));
/* User instance is null for whatever reason. Could be that it was unloaded between asyncpre and now. */