mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 18:46:15 +00:00
feat: configurable self cares
This commit is contained in:
parent
3e05e6b89d
commit
bb8bb88489
2 changed files with 11 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ public class Configuration {
|
||||||
public CommandCore core = new CommandCore();
|
public CommandCore core = new CommandCore();
|
||||||
public Bots bots = new Bots();
|
public Bots bots = new Bots();
|
||||||
public CustomChat customChat = new CustomChat();
|
public CustomChat customChat = new CustomChat();
|
||||||
|
public SelfCare selfCare = new SelfCare();
|
||||||
public String autoSkinUsername = "off";
|
public String autoSkinUsername = "off";
|
||||||
|
|
||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
|
|
@ -66,6 +67,13 @@ public class Configuration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public static class SelfCare {
|
||||||
|
public boolean cspy = true;
|
||||||
|
public boolean gameMode = true;
|
||||||
|
public boolean op = true;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigSerializable
|
@ConfigSerializable
|
||||||
public static class CustomChat {
|
public static class CustomChat {
|
||||||
public @NotNull Component format =
|
public @NotNull Component format =
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ public class SelfCare implements Listener {
|
||||||
public final long interval;
|
public final long interval;
|
||||||
public final long chatInterval;
|
public final long chatInterval;
|
||||||
|
|
||||||
public boolean opEnabled = true;
|
public boolean opEnabled = ChipmunkMod.CONFIG.selfCare.op;
|
||||||
public boolean gamemodeEnabled = true;
|
public boolean gamemodeEnabled = ChipmunkMod.CONFIG.selfCare.gameMode;
|
||||||
public boolean cspyEnabled = true;
|
public boolean cspyEnabled = ChipmunkMod.CONFIG.selfCare.cspy;
|
||||||
|
|
||||||
private int gameMode;
|
private int gameMode;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue