From f698481b97b4a8ea72fee479b780b1911e9367f0 Mon Sep 17 00:00:00 2001 From: BenCodez Date: Tue, 8 Oct 2024 15:39:21 -0600 Subject: [PATCH] More adjustments to global data handling --- .../bencodez/votingplugin/bungee/VotingPluginBungee.java | 2 ++ .../votingplugin/bungee/velocity/VotingPluginVelocity.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java b/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java index a35ce48cc..344bc8d64 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java @@ -382,6 +382,8 @@ public void onTimeChangedFinished(TimeType type) { @Override public void onTimeChangedFailed(String server, TimeType type) { getGlobalDataHandler().setBoolean(server, type.toString(), false); + getGlobalDataHandler().setBoolean(server, "FinishedProcessing", true); + getGlobalDataHandler().setBoolean(server, "Processing", false); } }; } else { diff --git a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java index f3fca291f..39e8d03b5 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java @@ -387,6 +387,8 @@ public void onTimeChangedFinished(TimeType type) { @Override public void onTimeChangedFailed(String server, TimeType type) { getGlobalDataHandler().setBoolean(server, type.toString(), false); + getGlobalDataHandler().setBoolean(server, "FinishedProcessing", true); + getGlobalDataHandler().setBoolean(server, "Processing", false); } }; } else { @@ -498,7 +500,7 @@ public void onPluginMessagingReceived(PluginMessageEvent event) { logger.info("Status okay for " + server); return; } else if (subchannel.equalsIgnoreCase("TimeChangeFinished")) { - + } else if (subchannel.equalsIgnoreCase("login")) { String player = in.readUTF(); @@ -964,7 +966,7 @@ protected void onMessage(String channel, String[] message) { String server = message[1]; getLogger().info("Status okay for " + server); } else if (message[0].equalsIgnoreCase("TimeChangeFinished")) { - + } else if (message[0].equalsIgnoreCase("login")) { String player = message[1]; String uuid = message[2];