mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 19:23:01 +08:00
Add handbook config options
This commit is contained in:
parent
2578eb4f0f
commit
489f504593
@ -252,6 +252,8 @@ public class ConfigContainer {
|
||||
public ResinOptions resinOptions = new ResinOptions();
|
||||
public Rates rates = new Rates();
|
||||
|
||||
public HandbookOptions handbook = new HandbookOptions();
|
||||
|
||||
public static class InventoryLimits {
|
||||
public int weapons = 2000;
|
||||
public int relics = 2000;
|
||||
@ -281,6 +283,13 @@ public class ConfigContainer {
|
||||
/* Should questing behavior be used? */
|
||||
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 {
|
||||
|
@ -36,6 +36,8 @@ public final class Configuration extends ConfigContainer {
|
||||
public static final GameOptions GAME_OPTIONS = config.server.game.gameOptions;
|
||||
public static final GameOptions.InventoryLimits INVENTORY_LIMITS =
|
||||
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 PLUGINS_FOLDER = config.folderStructure.plugins;
|
||||
private static final String SCRIPTS_FOLDER = config.folderStructure.scripts;
|
||||
|
Loading…
Reference in New Issue
Block a user