no bad bad badb adb
This commit is contained in:
@@ -61,6 +61,8 @@ public class Configuration {
|
||||
}
|
||||
|
||||
public static class SelfCare {
|
||||
@Getter public int checkInterval;
|
||||
|
||||
@Getter public boolean op = true;
|
||||
@Getter public boolean gamemode = true;
|
||||
@Getter public boolean endCredits = true;
|
||||
|
||||
@@ -149,7 +149,7 @@ public class SelfCarePlugin extends Bot.Listener {
|
||||
check();
|
||||
};
|
||||
|
||||
checkTask = bot.executor().scheduleAtFixedRate(task, 0, bot.chat().queueDelay(), TimeUnit.MILLISECONDS);
|
||||
checkTask = bot.executor().scheduleAtFixedRate(task, 0, bot.config().selfCare().checkInterval(), TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
public void packetReceived (ClientboundGameEventPacket packet) {
|
||||
|
||||
@@ -47,6 +47,8 @@ core:
|
||||
# PLEASE give valid JSON component here else the core don't refill at all
|
||||
customName: '[{"text":"ChomeNS ","color":"yellow"},{"text":"Core","color":"green"},{"text":"™","color":"gold"}]'
|
||||
selfCare:
|
||||
checkInterval: 1000
|
||||
|
||||
# vanilla
|
||||
op: true
|
||||
gamemode: true
|
||||
|
||||
Reference in New Issue
Block a user