aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-09-29 23:52:15 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-09-29 23:53:36 +0200
commitfdd2c2b44938d6b5e1da2583dc1f0e149a1712d4 (patch)
tree7f68da5bcf4fed2013bf7c3da404d3c3c6aaeead /src/main/java
parentef0582a2aece635fa750f08aaed128fddf6b08a6 (diff)
downloadBBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.tar.gz
BBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.tar.bz2
BBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.zip
bug fixes
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/hype/bbsentials/client/Commands/CommandsOLD.java2
-rw-r--r--src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/de/hype/bbsentials/client/Commands/CommandsOLD.java b/src/main/java/de/hype/bbsentials/client/Commands/CommandsOLD.java
index 77d4042..8896827 100644
--- a/src/main/java/de/hype/bbsentials/client/Commands/CommandsOLD.java
+++ b/src/main/java/de/hype/bbsentials/client/Commands/CommandsOLD.java
@@ -244,7 +244,7 @@ public class CommandsOLD {
return 1;
})
);
- });/*SplashAnnounce*/
+ });/*requestpottimes*/
}
if (getConfig().hasBBRoles("admin")) {
event.register((dispatcher, registryAccess) -> {
diff --git a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
index d022319..abb5265 100644
--- a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
+++ b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
@@ -442,7 +442,12 @@ public class BBsentialConnection {
Chat.sendPrivateMessageToSelfError(packet.displayMessage);
for (int i : packet.waitBeforeReconnect) {
executionService.schedule(() -> {
- BBsentials.conditionalReconnectToBBserver();
+ if (i == 1) {
+ BBsentials.connectToBBserver();
+ }
+ else {
+ BBsentials.conditionalReconnectToBBserver();
+ }
}, i, TimeUnit.SECONDS);
}
}