Skip to content

Commit

Permalink
Allow empty alias list for command scripts
Browse files Browse the repository at this point in the history
Oops.
  • Loading branch information
Morphan1 committed Oct 12, 2014
1 parent 0a9cf42 commit 565fdaa
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -11,8 +11,7 @@
import net.aufdemrand.denizen.utilities.DenizenCommand;
import net.aufdemrand.denizencore.utilities.YamlConfiguration;

import java.util.List;
import java.util.Map;
import java.util.*;

public class CommandScriptContainer extends ScriptContainer {

Expand Down Expand Up @@ -98,7 +97,8 @@ public String getUsage() {
}

public List<String> getAliases() {
return getStringList("ALIASES");
List<String> aliases = getStringList("ALIASES");
return aliases != null? aliases : new ArrayList<String>();
}

public ScriptQueue runCommandScript(dPlayer player, dNPC npc, Map<String, dObject> context) {
Expand Down

0 comments on commit 565fdaa

Please sign in to comment.