mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 16:45:37 +01:00
Fix NPE in UserData on login
if no address is available
This commit is contained in:
parent
99cefb2d74
commit
86124b2705
@ -635,7 +635,10 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||
public void setLastLogin(long time)
|
||||
{
|
||||
_setLastLogin(time);
|
||||
if (base.getAddress() != null && base.getAddress().getAddress() != null)
|
||||
{
|
||||
_setLastLoginAddress(base.getAddress().getAddress().getHostAddress());
|
||||
}
|
||||
config.save();
|
||||
}
|
||||
private long lastLogout;
|
||||
|
Loading…
Reference in New Issue
Block a user