mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26: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
|
* SETUP: settings.yml
|
||||||
*/
|
*/
|
||||||
private static void setupConfig() {
|
public static void setupConfig() {
|
||||||
final int config_ver = 1;
|
final int config_ver = 1;
|
||||||
config.set("version", config_ver);
|
config.set("version", config_ver);
|
||||||
final Map<String, Object> options = new HashMap<>();
|
final Map<String, Object> options = new HashMap<>();
|
||||||
|
@ -37,11 +37,11 @@ public class Reload extends SubCommand {
|
|||||||
@Override
|
@Override
|
||||||
public boolean execute(final Player plr, final String... args) {
|
public boolean execute(final Player plr, final String... args) {
|
||||||
try {
|
try {
|
||||||
PlotMain.reloadTranslations();
|
|
||||||
|
|
||||||
// The following won't affect world generation, as that has to be
|
// The following won't affect world generation, as that has to be
|
||||||
// loaded during startup unfortunately.
|
// loaded during startup unfortunately.
|
||||||
PlotMain.config.load(PlotMain.configFile);
|
PlotMain.config.load(PlotMain.configFile);
|
||||||
|
PlotMain.setupConfig();
|
||||||
|
C.setupTranslations();
|
||||||
for (final String pw : PlotMain.getPlotWorlds()) {
|
for (final String pw : PlotMain.getPlotWorlds()) {
|
||||||
final PlotWorld plotworld = PlotMain.getWorldSettings(pw);
|
final PlotWorld plotworld = PlotMain.getWorldSettings(pw);
|
||||||
plotworld.loadDefaultConfiguration(PlotMain.config.getConfigurationSection("worlds." + pw));
|
plotworld.loadDefaultConfiguration(PlotMain.config.getConfigurationSection("worlds." + pw));
|
||||||
|
@ -139,8 +139,8 @@ public enum C {
|
|||||||
/*
|
/*
|
||||||
* Reload
|
* Reload
|
||||||
*/
|
*/
|
||||||
RELOADED_CONFIGS("&6The translation files has been reloaded"),
|
RELOADED_CONFIGS("&6Translations and world settings have been reloaded"),
|
||||||
RELOAD_FAILED("&cFailed to reload the translations file"),
|
RELOAD_FAILED("&cFailed to reload file configurations"),
|
||||||
/*
|
/*
|
||||||
* BarAPI
|
* BarAPI
|
||||||
*/
|
*/
|
||||||
@ -440,7 +440,6 @@ public enum C {
|
|||||||
/**
|
/**
|
||||||
* Constructor for custom strings.
|
* Constructor for custom strings.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
|
||||||
C() {
|
C() {
|
||||||
/*
|
/*
|
||||||
* use setCustomString();
|
* use setCustomString();
|
||||||
@ -481,7 +480,6 @@ public enum C {
|
|||||||
*
|
*
|
||||||
* @return default
|
* @return default
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
|
||||||
public String d() {
|
public String d() {
|
||||||
return this.d;
|
return this.d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user