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

KingRainbow44's avatar
KingRainbow44 committed
3
public final class Config {
4

Melledy's avatar
Melledy committed
5
6
7
8
9
10
11
12
	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/";
13

14
15
16
17
18
	public GameServerOptions GameServer = new GameServerOptions();
	public DispatchServerOptions DispatchServer = new DispatchServerOptions();

	public GameServerOptions getGameServerOptions() {
		return GameServer;
Melledy's avatar
Melledy committed
19
	}
20
21
22
23
24
25
26
27
28
29
30
31
32

	public DispatchServerOptions getDispatchOptions() { return DispatchServer; }

	public static class DispatchServerOptions {
		public String Ip = "127.0.0.1";
		public String PublicIp = "";
		public int Port = 443;
		public int UploadLogPort = 80;
		public String KeystorePath = "./keystore.p12";
		public String KeystorePassword = "";
		public Boolean UseSSL = true;

		public boolean AutomaticallyCreateAccounts = false;
Melledy's avatar
Melledy committed
33
34
	}
	
35
36
37
38
39
40
41
42
	public static class GameServerOptions {
		public String Name = "Test";
		public String Ip = "127.0.0.1";
		public String PublicIp = "";
		public int Port = 22102;

		public boolean LOG_PACKETS = false;

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

		public GameRates Game = new GameRates();

		public GameRates getGameRates() { return Game; }

		public static class GameRates {
			public float ADVENTURE_EXP_RATE = 1.0f;
			public float MORA_RATE = 1.0f;
			public float DOMAIN_DROP_RATE = 1.0f;
		}
Melledy's avatar
Melledy committed
64
65
	}
}