forked from pdinklag/MinecraftStats
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfig.java
More file actions
190 lines (144 loc) · 4.4 KB
/
Config.java
File metadata and controls
190 lines (144 loc) · 4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
package de.pdinklag.mcstats;
import java.nio.file.Path;
import java.util.ArrayList;
/**
* The MinecraftStats configuration.
*/
public class Config {
private final ArrayList<DataSource> dataSources = new ArrayList<>();
private Path documentRoot;
private String serverName;
private Path statsPath;
private Path eventsPath;
private int inactiveDays = 7;
private int minPlaytime = 60;
private boolean updateInactive = false;
private int profileUpdateInterval = 3;
private boolean showLastOnline = true;
private boolean excludeBanned = true;
private boolean excludeOps = false;
private final ArrayList<String> excludeUUIDs = new ArrayList<>();
private int bronzeMedalWeight = 1;
private int silverMedalWeight = 2;
private int goldMedalWeight = 4;
private int playersPerPage = 100;
private int playerCacheUUIDPrefix = 2;
private String defaultLanguage = "en";
private String profileAPI = "mojang";
public Config() {
}
public ArrayList<DataSource> getDataSources() {
return dataSources;
}
public Path getDocumentRoot() {
return documentRoot;
}
public void setDocumentRoot(Path databasePath) {
this.documentRoot = databasePath;
}
public String getServerName() {
return serverName;
}
public void setServerName(String serverName) {
this.serverName = serverName;
}
public int getInactiveDays() {
return inactiveDays;
}
public void setInactiveDays(int inactiveDays) {
this.inactiveDays = inactiveDays;
}
public int getMinPlaytime() {
return minPlaytime;
}
public void setMinPlaytime(int minPlaytime) {
this.minPlaytime = minPlaytime;
}
public boolean isExcludeBanned() {
return excludeBanned;
}
public void setExcludeBanned(boolean excludeBanned) {
this.excludeBanned = excludeBanned;
}
public boolean isExcludeOps() {
return excludeOps;
}
public void setExcludeOps(boolean excludeOps) {
this.excludeOps = excludeOps;
}
public ArrayList<String> getExcludeUUIDs() {
return excludeUUIDs;
}
public int getProfileUpdateInterval() {
return profileUpdateInterval;
}
public void setProfileUpdateInterval(int profileUpdateInterval) {
this.profileUpdateInterval = profileUpdateInterval;
}
public boolean isUpdateInactive() {
return updateInactive;
}
public void setUpdateInactive(boolean updateInactive) {
this.updateInactive = updateInactive;
}
public int getBronzeMedalWeight() {
return bronzeMedalWeight;
}
public void setBronzeMedalWeight(int bronzeMedalWeight) {
this.bronzeMedalWeight = bronzeMedalWeight;
}
public int getSilverMedalWeight() {
return silverMedalWeight;
}
public void setSilverMedalWeight(int silverMedalWeight) {
this.silverMedalWeight = silverMedalWeight;
}
public int getGoldMedalWeight() {
return goldMedalWeight;
}
public void setGoldMedalWeight(int goldMedalWeight) {
this.goldMedalWeight = goldMedalWeight;
}
public int getPlayersPerPage() {
return playersPerPage;
}
public void setPlayersPerPage(int playersPerPage) {
this.playersPerPage = playersPerPage;
}
public int getPlayerCacheUUIDPrefix() {
return playerCacheUUIDPrefix;
}
public void setPlayerCacheUUIDPrefix(int playerCacheUUIDPrefix) {
this.playerCacheUUIDPrefix = playerCacheUUIDPrefix;
}
public String getDefaultLanguage() {
return defaultLanguage;
}
public void setDefaultLanguage(String defaultLanguage) {
this.defaultLanguage = defaultLanguage;
}
public boolean isShowLastOnline() {
return showLastOnline;
}
public void setShowLastOnline(boolean showLastOnline) {
this.showLastOnline = showLastOnline;
}
public Path getStatsPath() {
return statsPath;
}
public void setStatsPath(Path statsPath) {
this.statsPath = statsPath;
}
public Path getEventsPath() {
return eventsPath;
}
public void setEventsPath(Path eventsPath) {
this.eventsPath = eventsPath;
}
public String getProfileAPI() {
return profileAPI;
}
public void setProfileAPI(String profileAPI) {
this.profileAPI = profileAPI;
}
}