mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-04 07:28:04 +01:00
Only pull/push data on valid player data.
This commit is contained in:
parent
05242a7e8f
commit
f0c49019dd
@ -168,6 +168,7 @@ public class EssentialsPlayerListener extends PlayerListener
|
|||||||
{
|
{
|
||||||
user.setDisplayNick(user.getNick());
|
user.setDisplayNick(user.getNick());
|
||||||
}
|
}
|
||||||
|
user.setLastLoginAddress(user.getAddress().getAddress().getHostAddress());
|
||||||
user.updateActivity(false);
|
user.updateActivity(false);
|
||||||
if (user.isAuthorized("essentials.sleepingignored"))
|
if (user.isAuthorized("essentials.sleepingignored"))
|
||||||
{
|
{
|
||||||
@ -231,7 +232,6 @@ public class EssentialsPlayerListener extends PlayerListener
|
|||||||
event.allow();
|
event.allow();
|
||||||
|
|
||||||
user.setLastLogin(System.currentTimeMillis());
|
user.setLastLogin(System.currentTimeMillis());
|
||||||
user.setLastLoginAddress(user.getAddress().getAddress().getHostAddress());
|
|
||||||
updateCompass(user);
|
updateCompass(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
@Override
|
@Override
|
||||||
public String getDisplayName()
|
public String getDisplayName()
|
||||||
{
|
{
|
||||||
if (ess.getSettings().changeDisplayName())
|
if (!(base instanceof OfflinePlayer) && ess.getSettings().changeDisplayName())
|
||||||
{
|
{
|
||||||
setDisplayNick(getNick());
|
setDisplayNick(getNick());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user