Add handbook config options

This commit is contained in:
KingRainbow44 2023-05-08 01:44:51 -04:00
parent 2578eb4f0f
commit 489f504593
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 11 additions and 0 deletions

View File

@ -252,6 +252,8 @@ public class ConfigContainer {
public ResinOptions resinOptions = new ResinOptions(); public ResinOptions resinOptions = new ResinOptions();
public Rates rates = new Rates(); public Rates rates = new Rates();
public HandbookOptions handbook = new HandbookOptions();
public static class InventoryLimits { public static class InventoryLimits {
public int weapons = 2000; public int weapons = 2000;
public int relics = 2000; public int relics = 2000;
@ -281,6 +283,13 @@ public class ConfigContainer {
/* Should questing behavior be used? */ /* Should questing behavior be used? */
public boolean enabled = true; public boolean enabled = true;
} }
public static class HandbookOptions {
public boolean enable = false;
public boolean allowCommands = true;
public int maxRequests = 10;
public int maxEntities = 100;
}
} }
public static class VisionOptions { public static class VisionOptions {

View File

@ -36,6 +36,8 @@ public final class Configuration extends ConfigContainer {
public static final GameOptions GAME_OPTIONS = config.server.game.gameOptions; public static final GameOptions GAME_OPTIONS = config.server.game.gameOptions;
public static final GameOptions.InventoryLimits INVENTORY_LIMITS = public static final GameOptions.InventoryLimits INVENTORY_LIMITS =
config.server.game.gameOptions.inventoryLimits; config.server.game.gameOptions.inventoryLimits;
public static final GameOptions.HandbookOptions HANDBOOK =
config.server.game.gameOptions.handbook;
private static final String DATA_FOLDER = config.folderStructure.data; private static final String DATA_FOLDER = config.folderStructure.data;
private static final String PLUGINS_FOLDER = config.folderStructure.plugins; private static final String PLUGINS_FOLDER = config.folderStructure.plugins;
private static final String SCRIPTS_FOLDER = config.folderStructure.scripts; private static final String SCRIPTS_FOLDER = config.folderStructure.scripts;