Change some way we let people know of hte language system.
Also added a console command sender to the test setup, just in case we want to use it later on down the road.
This commit is contained in:
@ -52,18 +52,14 @@ public class JailIO {
|
||||
lang = YamlConfiguration.loadConfiguration(langFile);
|
||||
pl.getLogger().info("Loaded the language: " + language);
|
||||
}else {
|
||||
pl.getLogger().severe("The language file can not be a folder, please");
|
||||
pl.getLogger().info("double check your setup. Because of that, we");
|
||||
pl.getLogger().info("are reverting back to English as the language.");
|
||||
pl.getLogger().severe("The language file can not be a folder.");
|
||||
pl.getLogger().severe("As a result, we are reverting back to English as the language.");
|
||||
lang = YamlConfiguration.loadConfiguration(pl.getResource("en.yml"));
|
||||
save = true;
|
||||
}
|
||||
}else {
|
||||
pl.getLogger().info("Loading the default language of: en");
|
||||
pl.getLogger().info("If you wish to change this,");
|
||||
pl.getLogger().info("please rename 'en.yml' to whatever");
|
||||
pl.getLogger().info("you wish and set the config value");
|
||||
pl.getLogger().info("to the name of the file.");
|
||||
pl.getLogger().warning("Loading the default language of: en");
|
||||
pl.getLogger().warning("If you wish to change this, please rename 'en.yml' to whatever you wish and set the config value to the name of the file.");
|
||||
lang = YamlConfiguration.loadConfiguration(pl.getResource("en.yml"));
|
||||
save = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user