diff --git a/Plan/src/main/java/com/djrapitops/plan/ShutdownHook.java b/Plan/src/main/java/com/djrapitops/plan/ShutdownHook.java index 6f8e6088b..899a37a3d 100644 --- a/Plan/src/main/java/com/djrapitops/plan/ShutdownHook.java +++ b/Plan/src/main/java/com/djrapitops/plan/ShutdownHook.java @@ -93,5 +93,6 @@ public class ShutdownHook extends Thread { Log.toLog(this.getClass().getName(), e); } } + activeSessions.clear(); } } \ No newline at end of file diff --git a/Plan/src/main/java/com/djrapitops/plan/command/commands/InspectCommand.java b/Plan/src/main/java/com/djrapitops/plan/command/commands/InspectCommand.java index 1dec67158..e780087f5 100644 --- a/Plan/src/main/java/com/djrapitops/plan/command/commands/InspectCommand.java +++ b/Plan/src/main/java/com/djrapitops/plan/command/commands/InspectCommand.java @@ -15,7 +15,6 @@ import main.java.com.djrapitops.plan.locale.Msg; import main.java.com.djrapitops.plan.systems.processing.info.InspectCacheRequestProcessor; import main.java.com.djrapitops.plan.utilities.Check; import main.java.com.djrapitops.plan.utilities.MiscUtils; -import main.java.com.djrapitops.plan.utilities.html.HtmlUtils; import main.java.com.djrapitops.plan.utilities.uuid.UUIDUtility; import org.bukkit.ChatColor; @@ -76,7 +75,6 @@ public class InspectCommand extends SubCommand { if (!Check.isTrue(plugin.getDB().wasSeenBefore(uuid), Locale.get(Msg.CMD_FAIL_USERNAME_NOT_KNOWN).toString(), sender)) { return; } - sender.sendMessage(Locale.get(Msg.CMD_INFO_FETCH_DATA).toString()); if (CommandUtils.isPlayer(sender) && plugin.getWebServer().isAuthRequired()) { boolean senderHasWebUser = plugin.getDB().getSecurityTable().userExists(sender.getName()); if (!senderHasWebUser) { @@ -93,20 +91,4 @@ public class InspectCommand extends SubCommand { } }).runTaskAsynchronously(); } - - private void sendInspectMsg(ISender sender, String playerName) { - sender.sendMessage(Locale.get(Msg.CMD_HEADER_INSPECT) + " " + playerName); - // Link - String url = HtmlUtils.getInspectUrlWithProtocol(playerName); - String message = Locale.get(Msg.CMD_INFO_LINK).toString(); - boolean console = !CommandUtils.isPlayer(sender); - if (console) { - sender.sendMessage(message + url); - } else { - sender.sendMessage(message); - sender.sendLink(" ", Locale.get(Msg.CMD_INFO_CLICK_ME).toString(), url); - } - - sender.sendMessage(Locale.get(Msg.CMD_CONSTANT_FOOTER).toString()); - } } \ No newline at end of file diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/info/BukkitInformationManager.java b/Plan/src/main/java/com/djrapitops/plan/systems/info/BukkitInformationManager.java index cfe663d06..688ad5f50 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/info/BukkitInformationManager.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/info/BukkitInformationManager.java @@ -99,7 +99,7 @@ public class BukkitInformationManager extends InformationManager { cachePlayer(uuid); } } else { - PageCache.loadPage("inspectPage: " + uuid, () -> new InspectPageResponse(this, uuid)); + PageCache.cachePage("inspectPage: " + uuid, () -> new InspectPageResponse(this, uuid)); } plugin.addToProcessQueue(new Processor(uuid) { @Override diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/MiscUtils.java b/Plan/src/main/java/com/djrapitops/plan/utilities/MiscUtils.java index 5cdeb9764..4bc448050 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/MiscUtils.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/MiscUtils.java @@ -44,7 +44,7 @@ public class MiscUtils { } public static int getTimeZoneOffsetHours() { - return -TimeZone.getDefault().getOffset(MiscUtils.getTime()) / (int) TimeAmount.HOUR.ms(); + return TimeZone.getDefault().getOffset(MiscUtils.getTime()) / (int) TimeAmount.HOUR.ms(); } /** diff --git a/Plan/src/main/resources/Placeholders.txt b/Plan/src/main/resources/Placeholders.txt index abc6cd767..7b960ebdf 100644 --- a/Plan/src/main/resources/Placeholders.txt +++ b/Plan/src/main/resources/Placeholders.txt @@ -1,4 +1,6 @@ Placeholders: +worldPie1506439618596 +worldPie1506439618596 ${}