translations really need to be fixed.

This commit is contained in:
Jesse Boyd 2015-01-22 16:44:20 -08:00
parent df5c08f42f
commit 80a95b5c3d
3 changed files with 5 additions and 7 deletions

View File

@ -802,7 +802,7 @@ public class PlotMain extends JavaPlugin implements Listener {
/**
* SETUP: settings.yml
*/
private static void setupConfig() {
public static void setupConfig() {
final int config_ver = 1;
config.set("version", config_ver);
final Map<String, Object> options = new HashMap<>();

View File

@ -37,11 +37,11 @@ public class Reload extends SubCommand {
@Override
public boolean execute(final Player plr, final String... args) {
try {
PlotMain.reloadTranslations();
// The following won't affect world generation, as that has to be
// loaded during startup unfortunately.
PlotMain.config.load(PlotMain.configFile);
PlotMain.setupConfig();
C.setupTranslations();
for (final String pw : PlotMain.getPlotWorlds()) {
final PlotWorld plotworld = PlotMain.getWorldSettings(pw);
plotworld.loadDefaultConfiguration(PlotMain.config.getConfigurationSection("worlds." + pw));

View File

@ -139,8 +139,8 @@ public enum C {
/*
* Reload
*/
RELOADED_CONFIGS("&6The translation files has been reloaded"),
RELOAD_FAILED("&cFailed to reload the translations file"),
RELOADED_CONFIGS("&6Translations and world settings have been reloaded"),
RELOAD_FAILED("&cFailed to reload file configurations"),
/*
* BarAPI
*/
@ -440,7 +440,6 @@ public enum C {
/**
* Constructor for custom strings.
*/
@SuppressWarnings("unused")
C() {
/*
* use setCustomString();
@ -481,7 +480,6 @@ public enum C {
*
* @return default
*/
@SuppressWarnings("unused")
public String d() {
return this.d;
}