mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Small fix for new player with null name
This commit is contained in:
parent
4588ba0892
commit
63adfb166c
@ -106,7 +106,8 @@ public class PlayerManager {
|
||||
public void addPlayerToMap(PlayerInfo info) {
|
||||
this.PlayerUUIDMap.put(info.getUuid(), info);
|
||||
this.PlayerIDMap.put(info.getID(), info);
|
||||
this.PlayerNameMap.put(info.getName().toLowerCase(), info);
|
||||
if (info.getName() != null)
|
||||
this.PlayerNameMap.put(info.getName().toLowerCase(), info);
|
||||
}
|
||||
|
||||
public void addPlayerToCache(JobsPlayer jPlayer) {
|
||||
|
Loading…
Reference in New Issue
Block a user