Config.java 1.82 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
package emu.grasscutter;

KingRainbow44's avatar
KingRainbow44 committed
3
public final class Config {
Melledy's avatar
Melledy committed
4
	public String DispatchServerIp = "127.0.0.1";
5
	public String DispatchServerPublicIp = "";
Melledy's avatar
Melledy committed
6
7
8
	public int DispatchServerPort = 443;
	public String DispatchServerKeystorePath = "./keystore.p12";
	public String DispatchServerKeystorePassword = "";
9
	public Boolean UseSSL = true;
Melledy's avatar
Melledy committed
10
11
12
	
	public String GameServerName = "Test";
	public String GameServerIp = "127.0.0.1";
13
	public String GameServerPublicIp = "";
Melledy's avatar
Melledy committed
14
	public int GameServerPort = 22102;
Jaida Wu's avatar
Jaida Wu committed
15

Melledy's avatar
Melledy committed
16
17
	public String DatabaseUrl = "mongodb://localhost:27017";
	public String DatabaseCollection = "grasscutter";
Jaida Wu's avatar
Jaida Wu committed
18

Melledy's avatar
Melledy committed
19
20
21
22
23
24
	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;
25

Melledy's avatar
Melledy committed
26
27
	public GameRates Game = new GameRates();
	public ServerOptions ServerOptions = new ServerOptions();
Jaida Wu's avatar
Jaida Wu committed
28

Melledy's avatar
Melledy committed
29
30
31
	public GameRates getGameRates() {
		return Game;
	}
Jaida Wu's avatar
Jaida Wu committed
32

Melledy's avatar
Melledy committed
33
34
35
	public ServerOptions getServerOptions() {
		return ServerOptions;
	}
Jaida Wu's avatar
Jaida Wu committed
36

KingRainbow44's avatar
KingRainbow44 committed
37
	public static class GameRates {
Melledy's avatar
Melledy committed
38
39
40
41
		public float ADVENTURE_EXP_RATE = 1.0f;
		public float MORA_RATE = 1.0f;
		public float DOMAIN_DROP_RATE = 1.0f;
	}
Jaida Wu's avatar
Jaida Wu committed
42

KingRainbow44's avatar
KingRainbow44 committed
43
	public static class ServerOptions {
44
45
46
47
48
49
50
		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;
KingRainbow44's avatar
KingRainbow44 committed
51
		public int MaxEntityLimit = 1000; // Max entity limit per world. // TODO: Enforce later.
52
		public boolean WatchGacha = false;
Melledy's avatar
Melledy committed
53
54
		public int[] WelcomeEmotes = {2007, 1002, 4010};
		public String WelcomeMotd = "Welcome to Grasscutter emu";
KingRainbow44's avatar
KingRainbow44 committed
55
		public boolean AutomaticallyCreateAccounts = false;
Melledy's avatar
Melledy committed
56
57
	}
}