From 25c2e8a1bff2087527af742be4b64b494e5e8840 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sun, 10 Sep 2017 15:06:02 +0300 Subject: [PATCH] Disabled some messages --- .../main/java/com/djrapitops/plan/Plan.java | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/Plan.java b/Plan/src/main/java/com/djrapitops/plan/Plan.java index cb051ecd9..0c8bf0a34 100644 --- a/Plan/src/main/java/com/djrapitops/plan/Plan.java +++ b/Plan/src/main/java/com/djrapitops/plan/Plan.java @@ -136,7 +136,6 @@ public class Plan extends BukkitPlugin implements IPlan { GeolocationCache.checkDB(); - // Initialize Locale new Locale(this).loadLocale(); Benchmark.start("Reading server variables"); @@ -177,15 +176,15 @@ public class Plan extends BukkitPlugin implements IPlan { this.api = new API(this); // Data view settings // TODO Rewrite. (TextUI removed & webServer might be running on bungee - boolean usingAlternativeIP = Settings.SHOW_ALTERNATIVE_IP.isTrue(); - boolean hasDataViewCapability = usingAlternativeIP; - - if (!hasDataViewCapability) { - Log.infoColor(Locale.get(Msg.ENABLE_NOTIFY_NO_DATA_VIEW).toString()); - } - if (!usingAlternativeIP && serverVariableHolder.getIp().isEmpty()) { - Log.infoColor(Locale.get(Msg.ENABLE_NOTIFY_EMPTY_IP).toString()); - } +// boolean usingAlternativeIP = Settings.SHOW_ALTERNATIVE_IP.isTrue(); +// boolean hasDataViewCapability = usingAlternativeIP; +// +// if (!hasDataViewCapability) { +// Log.infoColor(Locale.get(Msg.ENABLE_NOTIFY_NO_DATA_VIEW).toString()); +// } +// if (!usingAlternativeIP && serverVariableHolder.getIp().isEmpty()) { +// Log.infoColor(Locale.get(Msg.ENABLE_NOTIFY_EMPTY_IP).toString()); +// } registerCommand(new PlanCommand(this)); @@ -260,8 +259,6 @@ public class Plan extends BukkitPlugin implements IPlan { /** * Disables the plugin. - *

- * Stops the webServer, cancels all tasks and saves cache to the database. */ @Override public void onDisable() { @@ -273,6 +270,7 @@ public class Plan extends BukkitPlugin implements IPlan { webServer.stop(); } + // Processes unprocessed processors if (processingQueue != null) { List processors = processingQueue.stopAndReturnLeftovers(); Log.info("Processing unprocessed processors. (" + processors.size() + ")"); // TODO Move to Locale @@ -284,16 +282,11 @@ public class Plan extends BukkitPlugin implements IPlan { getServer().getScheduler().cancelTasks(this); if (Verify.notNull(infoManager, db)) { - // Saves the DataCache to the database without Bukkit's Schedulers. - Log.info(Locale.get(Msg.DISABLE_CACHE_SAVE).toString()); - - // TODO Process all leftover Processors. taskStatus().cancelAllKnownTasks(); } getPluginLogger().endAllDebugs(); Log.info(Locale.get(Msg.DISABLED).toString()); -// Locale.unload(); } private void registerListeners() {