From 87be676ec6e581d98ada078648feb5ccb4cfd2ed Mon Sep 17 00:00:00 2001 From: Chip <65827213+ChipmunkMC@users.noreply.github.com> Date: Fri, 16 Dec 2022 19:48:21 -0500 Subject: [PATCH] load the chat plugin i forgor why i removed this but probably from when i rewrote this to use a config file --- src/main/java/land/chipmunk/chipmunkbot/Main.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/Main.java b/src/main/java/land/chipmunk/chipmunkbot/Main.java index 82e2a90..12f1685 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/Main.java +++ b/src/main/java/land/chipmunk/chipmunkbot/Main.java @@ -16,9 +16,9 @@ import com.google.gson.JsonObject; import com.google.gson.JsonElement; import com.google.gson.JsonParser; -import land.chipmunk.chipmunkbot.plugins.ChatPlugin; - import com.google.gson.Gson; + +import land.chipmunk.chipmunkbot.plugins.ChatPlugin; import land.chipmunk.chipmunkbot.plugins.PlayerListPlugin; public class Main { @@ -52,6 +52,7 @@ public class Main { for (JsonElement element : config.get("bots").getAsJsonArray()) { ClientOptions options = parseClientOptions(element.getAsJsonObject()); Client client = new Client(options); // TODO: Maybe create a list of some sort + client.loadPlugin(ChatPlugin.class); client.loadPlugin(PlayerListPlugin.class); } }