Skip to content

Commit

Permalink
remember to start the config
Browse files Browse the repository at this point in the history
...and stop it
  • Loading branch information
Scarlet-Phonavis committed Jul 6, 2024
1 parent 793b01a commit 8a83be3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package net.stonebound.simpleircbridge.simpleircbridge;

import com.mojang.logging.LogUtils;
import dev.architectury.event.EventResult;
import dev.architectury.event.events.common.ChatEvent;
import dev.architectury.event.events.common.LifecycleEvent;
import dev.architectury.event.events.common.PlayerEvent;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.network.chat.TextColor;
import net.minecraft.server.MinecraftServer;
Expand All @@ -31,7 +29,6 @@ public class SimpleIRCBridgeCommon {
private MinecraftServer mcServer;
public static GameEventHandler eventHandler;

public static String indicator = "This is a string to remind git this is a different file";

public SimpleIRCBridgeCommon() {
eventHandler = new GameEventHandler(this);
Expand All @@ -51,6 +48,7 @@ public SimpleIRCBridgeCommon() {


public void serverStarting(MinecraftServer instance) {
Config.serverStarting(instance);
this.mcServer = instance;
this.bot = new BridgeIRCBot(this);
this.bot.run();
Expand All @@ -60,6 +58,7 @@ public void serverStopping(MinecraftServer instance) {
if (this.mcServer != null && timestop) {
this.mcServer.getPlayerList().getPlayers().forEach(player -> sendToIrc(MircColors.BOLD + MircColors.LIGHT_RED + ">>>" + player.getName().getString() + " was still online when time came to a halt<<<"));
}
Config.serverStopping(instance);
if (this.bot != null) {
this.bot.disconnect();
}
Expand Down

0 comments on commit 8a83be3

Please sign in to comment.