potential fix for translations

This commit is contained in:
boy0001 2015-02-10 22:17:13 +11:00
parent e508ac5462
commit 02aa156987
2 changed files with 3 additions and 7 deletions

View File

@ -42,7 +42,7 @@ import com.intellectualcrafters.plot.util.UUIDHandler;
public class Swap extends SubCommand { public class Swap extends SubCommand {
public Swap() { public Swap() {
super(Command.SWAP, "Swap two plots", "copy", CommandCategory.ACTIONS, true); super(Command.SWAP, "Swap two plots", "switch", CommandCategory.ACTIONS, true);
} }
@Override @Override

View File

@ -495,12 +495,8 @@ public enum C {
} }
public static void setupTranslations() { public static void setupTranslations() {
if (manager == null) { manager = new TranslationManager();
manager = new TranslationManager(); defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read();
}
if (defaultFile == null) {
defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read();
}
// register everything in this class // register everything in this class
for (final C c : values()) { for (final C c : values()) {
manager.addTranslationObject(new TranslationObject(c.toString(), c.d, "", "")); manager.addTranslationObject(new TranslationObject(c.toString(), c.d, "", ""));