From 02aa15698762a5b92fedb0bdbc343f0d66d7a156 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 10 Feb 2015 22:17:13 +1100 Subject: [PATCH] potential fix for translations --- .../java/com/intellectualcrafters/plot/commands/Swap.java | 2 +- .../main/java/com/intellectualcrafters/plot/config/C.java | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Swap.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Swap.java index cc765ce96..52fcb1505 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Swap.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Swap.java @@ -42,7 +42,7 @@ import com.intellectualcrafters.plot.util.UUIDHandler; public class Swap extends SubCommand { public Swap() { - super(Command.SWAP, "Swap two plots", "copy", CommandCategory.ACTIONS, true); + super(Command.SWAP, "Swap two plots", "switch", CommandCategory.ACTIONS, true); } @Override diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/config/C.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/config/C.java index 6c7412c70..990c73a57 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/config/C.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/config/C.java @@ -495,12 +495,8 @@ public enum C { } public static void setupTranslations() { - if (manager == null) { - manager = new TranslationManager(); - } - if (defaultFile == null) { - defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read(); - } + manager = new TranslationManager(); + defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read(); // register everything in this class for (final C c : values()) { manager.addTranslationObject(new TranslationObject(c.toString(), c.d, "", ""));