mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 17:47:34 +01:00
Abort user login code, if user disconnects before it runs.
This commit is contained in:
parent
28e069eb6b
commit
566a826cf1
@ -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);
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user