mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-12 10:24:07 +01:00
potential fix for translations
This commit is contained in:
parent
e508ac5462
commit
02aa156987
@ -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
|
||||||
|
@ -495,12 +495,8 @@ public enum C {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setupTranslations() {
|
public static void setupTranslations() {
|
||||||
if (manager == null) {
|
|
||||||
manager = new TranslationManager();
|
manager = new TranslationManager();
|
||||||
}
|
|
||||||
if (defaultFile == null) {
|
|
||||||
defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read();
|
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, "", ""));
|
||||||
|
Loading…
Reference in New Issue
Block a user