diff --git a/src/main/java/org/dynmap/DynmapPlayerListener.java b/src/main/java/org/dynmap/DynmapPlayerListener.java index 89ae1a32..d91c1524 100644 --- a/src/main/java/org/dynmap/DynmapPlayerListener.java +++ b/src/main/java/org/dynmap/DynmapPlayerListener.java @@ -21,9 +21,11 @@ public class DynmapPlayerListener extends PlayerListener { String[] split = event.getMessage().split(" "); if (split[0].equalsIgnoreCase("/dynmap")) { if (split.length > 1) { - for(String s : (Iterable)configuration.getProperty("disabledcommands")) { - if (split[1].equals(s)) { - return; + if (configuration.getProperty("disabledcommands") instanceof Iterable) { + for(String s : (Iterable)configuration.getProperty("disabledcommands")) { + if (split[1].equals(s)) { + return; + } } }