2022-04-17 12:43:07 +00:00
|
|
|
package emu.grasscutter;
|
|
|
|
|
2022-04-18 05:11:27 +00:00
|
|
|
public final class Config {
|
2022-04-17 12:43:07 +00:00
|
|
|
public String DispatchServerIp = "127.0.0.1";
|
2022-04-18 09:10:12 +00:00
|
|
|
public String DispatchServerPublicIp = "";
|
2022-04-17 12:43:07 +00:00
|
|
|
public int DispatchServerPort = 443;
|
|
|
|
public String DispatchServerKeystorePath = "./keystore.p12";
|
|
|
|
public String DispatchServerKeystorePassword = "";
|
2022-04-19 04:49:08 +00:00
|
|
|
public Boolean UseSSL = true;
|
2022-04-17 12:43:07 +00:00
|
|
|
|
|
|
|
public String GameServerName = "Test";
|
|
|
|
public String GameServerIp = "127.0.0.1";
|
2022-04-18 09:10:12 +00:00
|
|
|
public String GameServerPublicIp = "";
|
2022-04-17 12:43:07 +00:00
|
|
|
public int GameServerPort = 22102;
|
|
|
|
|
|
|
|
public String DatabaseUrl = "mongodb://localhost:27017";
|
|
|
|
public String DatabaseCollection = "grasscutter";
|
|
|
|
|
|
|
|
public String RESOURCE_FOLDER = "./resources/";
|
|
|
|
public String DATA_FOLDER = "./data/";
|
|
|
|
public String PACKETS_FOLDER = "./packets/";
|
|
|
|
public String DUMPS_FOLDER = "./dumps/";
|
|
|
|
public String KEY_FOLDER = "./keys/";
|
|
|
|
public boolean LOG_PACKETS = false;
|
2022-04-20 08:05:53 +00:00
|
|
|
|
2022-04-17 12:43:07 +00:00
|
|
|
public GameRates Game = new GameRates();
|
|
|
|
public ServerOptions ServerOptions = new ServerOptions();
|
|
|
|
|
|
|
|
public GameRates getGameRates() {
|
|
|
|
return Game;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ServerOptions getServerOptions() {
|
|
|
|
return ServerOptions;
|
|
|
|
}
|
|
|
|
|
2022-04-18 05:11:27 +00:00
|
|
|
public static class GameRates {
|
2022-04-17 12:43:07 +00:00
|
|
|
public float ADVENTURE_EXP_RATE = 1.0f;
|
|
|
|
public float MORA_RATE = 1.0f;
|
|
|
|
public float DOMAIN_DROP_RATE = 1.0f;
|
|
|
|
}
|
|
|
|
|
2022-04-18 05:11:27 +00:00
|
|
|
public static class ServerOptions {
|
2022-04-19 09:22:21 +00:00
|
|
|
public int InventoryLimitWeapon = 2000;
|
|
|
|
public int InventoryLimitRelic = 2000;
|
|
|
|
public int InventoryLimitMaterial = 2000;
|
|
|
|
public int InventoryLimitFurniture = 2000;
|
|
|
|
public int InventoryLimitAll = 30000;
|
|
|
|
public int MaxAvatarsInTeam = 4;
|
|
|
|
public int MaxAvatarsInTeamMultiplayer = 4;
|
2022-04-18 05:11:27 +00:00
|
|
|
public int MaxEntityLimit = 1000; // Max entity limit per world. // TODO: Enforce later.
|
2022-04-20 08:05:53 +00:00
|
|
|
public boolean WatchGacha = false;
|
2022-04-17 12:43:07 +00:00
|
|
|
public int[] WelcomeEmotes = {2007, 1002, 4010};
|
|
|
|
public String WelcomeMotd = "Welcome to Grasscutter emu";
|
2022-04-20 04:10:32 +00:00
|
|
|
public boolean AutomaticallyCreateAccounts = false;
|
2022-04-17 12:43:07 +00:00
|
|
|
}
|
|
|
|
}
|