no bad bad badb adb

This commit is contained in:
Chayapak 2023-05-09 09:47:37 +07:00
parent c1a3968124
commit c97fdb7b1e
3 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -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) {

View file

@ -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