*and this

This commit is contained in:
boy0001 2015-02-10 22:32:58 +11:00
parent 02aa156987
commit cde14f8686

View File

@ -1347,6 +1347,7 @@ public class PlotMain extends JavaPlugin implements Listener {
setupLogger(); setupLogger();
// Setup translations // Setup translations
C.setupTranslations(); C.setupTranslations();
C.saveTranslations();
// Check for outdated java version. // Check for outdated java version.
if (getJavaVersion() < 1.7) { if (getJavaVersion() < 1.7) {
sendConsoleSenderMessage(C.PREFIX.s() + "&cYour java version is outdated. Please update to at least 1.7."); sendConsoleSenderMessage(C.PREFIX.s() + "&cYour java version is outdated. Please update to at least 1.7.");
@ -1620,13 +1621,6 @@ public class PlotMain extends JavaPlugin implements Listener {
*/ */
@Override @Override
final public void onDisable() { final public void onDisable() {
try {
C.saveTranslations();
} catch (final Exception e) {
sendConsoleSenderMessage("Failed to save translations");
Logger.add(LogLevel.DANGER, "Failed to save translations");
e.printStackTrace();
}
Logger.add(LogLevel.GENERAL, "Logger disabled"); Logger.add(LogLevel.GENERAL, "Logger disabled");
try { try {
Logger.write(); Logger.write();