1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +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,6 +106,7 @@ public class PlayerManager {
public void addPlayerToMap(PlayerInfo info) {
this.PlayerUUIDMap.put(info.getUuid(), info);
this.PlayerIDMap.put(info.getID(), info);
if (info.getName() != null)
this.PlayerNameMap.put(info.getName().toLowerCase(), info);
}