diff --git a/pom.xml b/pom.xml index a59023deb..f735ef765 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ UTF-8 PlotSquared - 3.2.18 + 3.2.19 PlotSquared jar diff --git a/src/main/java/com/intellectualcrafters/plot/commands/MainCommand.java b/src/main/java/com/intellectualcrafters/plot/commands/MainCommand.java index 0d515cf6b..e32dd7310 100644 --- a/src/main/java/com/intellectualcrafters/plot/commands/MainCommand.java +++ b/src/main/java/com/intellectualcrafters/plot/commands/MainCommand.java @@ -333,7 +333,7 @@ public class MainCommand extends CommandManager { } Command cmd; if (label != null) { - cmd = getInstance().commands.get(label); + cmd = getInstance().commands.get(label.toLowerCase()); } else { cmd = null; } diff --git a/src/main/java/com/intellectualcrafters/plot/flag/FlagManager.java b/src/main/java/com/intellectualcrafters/plot/flag/FlagManager.java index 67d5814c3..6fe60e347 100644 --- a/src/main/java/com/intellectualcrafters/plot/flag/FlagManager.java +++ b/src/main/java/com/intellectualcrafters/plot/flag/FlagManager.java @@ -120,19 +120,15 @@ public class FlagManager { } public static Flag getSettingFlag(final String world, final PlotSettings settings, final String id) { - System.out.print("GETTIGN FLAG!! " + (settings.flags.size() == 0) + " | " + ((settings.flags.get(id)) == null)); Flag flag; if ((settings.flags.size() == 0) || ((flag = settings.flags.get(id)) == null)) { final PlotWorld plotworld = PS.get().getPlotWorld(world); if (plotworld == null) { - System.out.print("pw is nykl"); return null; } if (plotworld.DEFAULT_FLAGS.size() == 0) { - System.out.print("no default flags"); return null; } - System.out.print("DEFAULT_FLAGS: " + plotworld.DEFAULT_FLAGS + " | " + plotworld.DEFAULT_FLAGS.get(id)); return plotworld.DEFAULT_FLAGS.get(id); } return flag; diff --git a/src/main/java/com/plotsquared/general/commands/CommandManager.java b/src/main/java/com/plotsquared/general/commands/CommandManager.java index cb550890b..e0d234c89 100644 --- a/src/main/java/com/plotsquared/general/commands/CommandManager.java +++ b/src/main/java/com/plotsquared/general/commands/CommandManager.java @@ -39,7 +39,7 @@ public class CommandManager { } final public Command getCommand(final String command) { - return commands.get(command); + return commands.get(command.toLowerCase()); } final public boolean createCommand(final Command command) { diff --git a/target/PlotSquared-Bukkit.jar b/target/PlotSquared-Bukkit.jar index cd977fcaf..7868a2c37 100644 Binary files a/target/PlotSquared-Bukkit.jar and b/target/PlotSquared-Bukkit.jar differ