forked from ChomeNS/chomens-bot-java
no bad bad badb adb
This commit is contained in:
parent
c1a3968124
commit
c97fdb7b1e
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue