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:
graywolf336
2014-01-14 18:28:02 -06:00
parent cf7c9fc4c2
commit 976149743a
2 changed files with 26 additions and 11 deletions

View File

@ -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;
}