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();
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user