Fix the bug I just added

This commit is contained in:
Olof Larsson 2016-01-09 18:32:58 +01:00
parent 83f1d3c903
commit d3b2dac30e

View File

@ -84,7 +84,8 @@ public class EngineMassiveCorePlayerState extends EngineAbstract
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void logasyncMonitor(AsyncPlayerPreLoginEvent event) public void logasyncMonitor(AsyncPlayerPreLoginEvent event)
{ {
if (event.getLoginResult() != AsyncPlayerPreLoginEvent.Result.ALLOWED) return; // If the player was denied entrance they are now offline.
if (event.getLoginResult() == AsyncPlayerPreLoginEvent.Result.ALLOWED) return;
final UUID id = event.getUniqueId(); final UUID id = event.getUniqueId();
@ -108,7 +109,8 @@ public class EngineMassiveCorePlayerState extends EngineAbstract
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void logsyncMonitor(PlayerLoginEvent event) public void logsyncMonitor(PlayerLoginEvent event)
{ {
if (event.getResult() != PlayerLoginEvent.Result.ALLOWED) return; // If the player was denied entrance they are now offline.
if (event.getResult() == PlayerLoginEvent.Result.ALLOWED) return;
final Player player = event.getPlayer(); final Player player = event.getPlayer();
if (MUtil.isntPlayer(player)) return; if (MUtil.isntPlayer(player)) return;