diff --git a/src/de/steamwar/bungeecore/commands/WhoisCommand.java b/src/de/steamwar/bungeecore/commands/WhoisCommand.java index b891362..8507457 100644 --- a/src/de/steamwar/bungeecore/commands/WhoisCommand.java +++ b/src/de/steamwar/bungeecore/commands/WhoisCommand.java @@ -112,7 +112,7 @@ public class WhoisCommand extends SWCommand { if (parameterTypes.contains(WhoisParameterTypes.MOD)) { List activeMods = Utils.playerModMap.get(user.getUuid()); - if (!activeMods.isEmpty()) { + if (activeMods != null && !activeMods.isEmpty()) { Message.send("WHOIS_ACTIVE_MODS", player,activeMods.size()); String result = activeMods.stream().map(mod -> "§" + mod.getModType().getColorCode() + mod.getModName()).collect(Collectors.joining("§8, ")); Message.send("WHOIS_ACTIVE_MOD", player, result);