Skip to content

Commit

Permalink
More adjustments to global data handling
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Oct 8, 2024
1 parent 927641f commit f698481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit f698481

Please sign in to comment.