Reduced the max value for the water, lava and fire duration options. Moved the KEYS enum.
This commit is contained in:
@ -25,32 +25,6 @@ public final class Config {
|
||||
}
|
||||
|
||||
public static class Server {
|
||||
public enum KEYS {
|
||||
PAUSE,
|
||||
DEBUG,
|
||||
FULLSCREEN,
|
||||
PERSPECTIVE,
|
||||
SMOOTH_CAMERA,
|
||||
SCREENSHOT,
|
||||
SPECTATOR_OUTLINES,
|
||||
ADVANCEMENTS,
|
||||
PLAYER_LIST,
|
||||
CHAT,
|
||||
SOCIAL_INTERACTIONS,
|
||||
LOAD_HOTBAR_ACTIVATOR,
|
||||
SAVE_HOTBAR_ACTIVATOR,
|
||||
SWAP_ITEM,
|
||||
INVENTORY,
|
||||
HOTBAR,
|
||||
DROP_ITEM,
|
||||
USE_ITEM,
|
||||
PICK_BLOCK,
|
||||
ATTACK,
|
||||
MOVE,
|
||||
SNEAK,
|
||||
JUMP
|
||||
}
|
||||
|
||||
public static ForgeConfigSpec.BooleanValue POST_GRACE_ENABLED;
|
||||
public static ForgeConfigSpec.BooleanValue POST_GRACE_IGNORE_PLAYER_ENABLED;
|
||||
public static ForgeConfigSpec.IntValue POST_GRACE_DURATION;
|
||||
@ -132,7 +106,7 @@ public final class Config {
|
||||
.define("waterEnabled", false);
|
||||
POST_WATER_DURATION = builder
|
||||
.comment("Water breathing duration in seconds.")
|
||||
.defineInRange("waterDuration", 10, 1, Integer.MAX_VALUE);
|
||||
.defineInRange("waterDuration", 10, 1, Integer.MAX_VALUE/20);
|
||||
builder.pop();
|
||||
builder.push("lava_protection");
|
||||
POST_LAVA_ENABLED = builder
|
||||
@ -140,7 +114,7 @@ public final class Config {
|
||||
.define("enabled", true);
|
||||
POST_LAVA_DURATION = builder
|
||||
.comment("Fire resistance duration in seconds.")
|
||||
.defineInRange("duration", 10, 1, Integer.MAX_VALUE);
|
||||
.defineInRange("duration", 10, 1, Integer.MAX_VALUE/20);
|
||||
builder.pop();
|
||||
builder.push("fire_protection");
|
||||
POST_FIRE_ENABLED = builder
|
||||
@ -148,9 +122,35 @@ public final class Config {
|
||||
.define("enabled", false);
|
||||
POST_FIRE_DURATION = builder
|
||||
.comment("Fire resistance duration in seconds.")
|
||||
.defineInRange("duration", 10, 1, Integer.MAX_VALUE);
|
||||
.defineInRange("duration", 10, 1, Integer.MAX_VALUE/20);
|
||||
builder.pop();
|
||||
builder.pop();
|
||||
}
|
||||
|
||||
public enum KEYS {
|
||||
PAUSE,
|
||||
DEBUG,
|
||||
FULLSCREEN,
|
||||
PERSPECTIVE,
|
||||
SMOOTH_CAMERA,
|
||||
SCREENSHOT,
|
||||
SPECTATOR_OUTLINES,
|
||||
ADVANCEMENTS,
|
||||
PLAYER_LIST,
|
||||
CHAT,
|
||||
SOCIAL_INTERACTIONS,
|
||||
LOAD_HOTBAR_ACTIVATOR,
|
||||
SAVE_HOTBAR_ACTIVATOR,
|
||||
SWAP_ITEM,
|
||||
INVENTORY,
|
||||
HOTBAR,
|
||||
DROP_ITEM,
|
||||
USE_ITEM,
|
||||
PICK_BLOCK,
|
||||
ATTACK,
|
||||
MOVE,
|
||||
SNEAK,
|
||||
JUMP
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user