disabledcommands can now be empty.

This commit is contained in:
FrozenCow 2011-02-07 22:26:55 +01:00
parent 553eb7952d
commit b31bb14452
1 changed files with 5 additions and 3 deletions

View File

@ -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<String>)configuration.getProperty("disabledcommands")) {
if (split[1].equals(s)) {
return;
if (configuration.getProperty("disabledcommands") instanceof Iterable<?>) {
for(String s : (Iterable<String>)configuration.getProperty("disabledcommands")) {
if (split[1].equals(s)) {
return;
}
}
}