mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
translations really need to be fixed.
This commit is contained in:
parent
df5c08f42f
commit
80a95b5c3d
@ -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<>();
|
||||
|
@ -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));
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user