SteamWar/BauSystem2.0
Archiviert
12
0

Fix CustomCommandListener NPE

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-08-24 19:22:55 +02:00
Ursprung d43e4cd10c
Commit 359cec00c1

Datei anzeigen

@ -182,6 +182,7 @@ public class CustomCommandListener implements Listener {
} }
private YAPIONObject output(Player p) { private YAPIONObject output(Player p) {
if (!playerMap.containsKey(p)) return new YAPIONObject();
YAPIONObject yapionObject = new YAPIONObject(); YAPIONObject yapionObject = new YAPIONObject();
YAPIONMap yapionMap = new YAPIONMap(); YAPIONMap yapionMap = new YAPIONMap();
yapionObject.add("", yapionMap); yapionObject.add("", yapionMap);