Config.java 1.42 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
9
10
11
	public int DispatchServerPort = 443;
	public String DispatchServerKeystorePath = "./keystore.p12";
	public String DispatchServerKeystorePassword = "";
	
	public String GameServerName = "Test";
	public String GameServerIp = "127.0.0.1";
12
	public String GameServerPublicIp = "";
Melledy's avatar
Melledy committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	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;
	
	public GameRates Game = new GameRates();
	public ServerOptions ServerOptions = new ServerOptions();
	
	public GameRates getGameRates() {
		return Game;
	}
	
	public ServerOptions getServerOptions() {
		return ServerOptions;
	}
	
KingRainbow44's avatar
KingRainbow44 committed
36
	public static class GameRates {
Melledy's avatar
Melledy committed
37
38
39
40
41
		public float ADVENTURE_EXP_RATE = 1.0f;
		public float MORA_RATE = 1.0f;
		public float DOMAIN_DROP_RATE = 1.0f;
	}
	
KingRainbow44's avatar
KingRainbow44 committed
42
43
	public static class ServerOptions {
		public int MaxEntityLimit = 1000; // Max entity limit per world. // TODO: Enforce later.
Melledy's avatar
Melledy committed
44
45
46
47
		public int[] WelcomeEmotes = {2007, 1002, 4010};
		public String WelcomeMotd = "Welcome to Grasscutter emu";
	}
}