Fix commands being case sensitive.

This commit is contained in:
Jesse Boyd
2015-11-28 22:56:12 +11:00
parent d1ac355e58
commit 1ee13ff96c
5 changed files with 3 additions and 7 deletions

View File

@ -120,19 +120,15 @@ public class FlagManager {
}
return false;
}
public static Flag getSettingFlag(final String world, final PlotSettings settings, final String id) {
Flag flag;
if ((settings.flags.size() == 0) || ((flag = settings.flags.get(id)) == null)) {
final PlotWorld plotworld = PS.get().getPlotWorld(world);
final PlotWorld plotworld = PS.get().getPlotWorld(world);
if (plotworld == null) {
return null;
}
}
if (plotworld.DEFAULT_FLAGS.size() == 0) {
return null;
return null;
}
return plotworld.DEFAULT_FLAGS.get(id);