mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-30 13:14:06 +01:00
*and this
This commit is contained in:
parent
02aa156987
commit
cde14f8686
@ -1347,6 +1347,7 @@ public class PlotMain extends JavaPlugin implements Listener {
|
||||
setupLogger();
|
||||
// Setup translations
|
||||
C.setupTranslations();
|
||||
C.saveTranslations();
|
||||
// Check for outdated java version.
|
||||
if (getJavaVersion() < 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
|
||||
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");
|
||||
try {
|
||||
Logger.write();
|
||||
|
Loading…
Reference in New Issue
Block a user