1
0
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:
Zrips 2018-03-14 15:45:07 +02:00
parent 4588ba0892
commit 63adfb166c

View File

@ -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) {