diff options
-rw-r--r-- | common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java b/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java index fbb7824..f662ea7 100644 --- a/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java +++ b/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java @@ -11,6 +11,7 @@ import java.util.concurrent.ScheduledExecutorService; public class BBsentials { public static Config config; public static BBsentialConnection connection; + private static boolean initialised = false; public static Commands coms; public static ScheduledExecutorService executionService = Executors.newScheduledThreadPool(1000); public static boolean splashLobby; @@ -65,6 +66,11 @@ public class BBsentials { */ public static void onServerSwap() { + if (!initialised) { + if (Config.isBingoTime() || config.overrideBingoTime()) { + connectToBBserver(); + } + } splashLobby = false; } @@ -75,8 +81,5 @@ public class BBsentials { ); debugThread.start(); debugThread.setName("Debug Thread"); - if (Config.isBingoTime() || config.overrideBingoTime()) { - connectToBBserver(); - } } }
\ No newline at end of file |