Abort user login code, if user disconnects before it runs.

This commit is contained in:
KHobbits 2013-03-21 22:30:02 +00:00
parent 28e069eb6b
commit 566a826cf1

View File

@ -184,6 +184,11 @@ public class EssentialsPlayerListener implements Listener
@Override
public void run()
{
if (!user.isOnline())
{
return;
}
user.setLastLogin(currentTime);
user.setDisplayNick();
updateCompass(user);
@ -264,7 +269,7 @@ public class EssentialsPlayerListener implements Listener
}
user.setFlySpeed(0.1f);
user.setWalkSpeed(0.2f);
}
});
}