load the chat plugin
i forgor why i removed this but probably from when i rewrote this to use a config file
This commit is contained in:
parent
4699f13cc5
commit
87be676ec6
1 changed files with 3 additions and 2 deletions
|
@ -16,9 +16,9 @@ import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
|
|
||||||
import land.chipmunk.chipmunkbot.plugins.ChatPlugin;
|
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
|
||||||
|
import land.chipmunk.chipmunkbot.plugins.ChatPlugin;
|
||||||
import land.chipmunk.chipmunkbot.plugins.PlayerListPlugin;
|
import land.chipmunk.chipmunkbot.plugins.PlayerListPlugin;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
@ -52,6 +52,7 @@ public class Main {
|
||||||
for (JsonElement element : config.get("bots").getAsJsonArray()) {
|
for (JsonElement element : config.get("bots").getAsJsonArray()) {
|
||||||
ClientOptions options = parseClientOptions(element.getAsJsonObject());
|
ClientOptions options = parseClientOptions(element.getAsJsonObject());
|
||||||
Client client = new Client(options); // TODO: Maybe create a list of some sort
|
Client client = new Client(options); // TODO: Maybe create a list of some sort
|
||||||
|
client.loadPlugin(ChatPlugin.class);
|
||||||
client.loadPlugin(PlayerListPlugin.class);
|
client.loadPlugin(PlayerListPlugin.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue