diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java index 4c63a6c..d2c020e 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java @@ -13,7 +13,9 @@ public class CommandAliasConfigEntry { public CommandAliasConfigEntry(String init, String repl, String perms) { - permissions = Collections.unmodifiableList(ConfigManager.splitPermissionsString(perms)); + List permsList = ConfigManager.splitPermissionsString(perms); + + permissions = (permsList == null) ? null : Collections.unmodifiableList(permsList); if (init == null || init.trim().equals("")) throw new IllegalArgumentException();