-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTradeCraftPropertiesFile.java
More file actions
52 lines (39 loc) · 1.69 KB
/
TradeCraftPropertiesFile.java
File metadata and controls
52 lines (39 loc) · 1.69 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
public class TradeCraftPropertiesFile {
private final PropertiesFile propertiesFile;
public TradeCraftPropertiesFile() {
propertiesFile = new PropertiesFile(TradeCraft.pluginName + ".properties");
}
public boolean getInfiniteShopsEnabled() {
return propertiesFile.getBoolean("infinite-shops-enabled", true);
}
public boolean getPlayerOwnedShopsEnabled() {
return propertiesFile.getBoolean("player-owned-shops-enabled", true);
}
public boolean getRepairShopsEnabled() {
return propertiesFile.getBoolean("repair-shops-enabled", false);
}
public String getGroupRequiredToCreateInfiniteShops() {
return propertiesFile.getString("group-required-to-create-infinite-shops", "*");
}
public String getGroupRequiredToCreatePlayerOwnedShops() {
return propertiesFile.getString("group-required-to-create-player-owned-shops", "*");
}
public String getGroupRequiredToCreateRepairShops() {
return propertiesFile.getString("group-required-to-create-repair-shops", "*");
}
public String getGroupRequiredToBuyFromShops() {
return propertiesFile.getString("group-required-to-buy-from-shops", "*");
}
public String getGroupRequiredToSellToShops() {
return propertiesFile.getString("group-required-to-sell-to-shops", "*");
}
public String getGroupRequiredToUseRepairShops() {
return propertiesFile.getString("group-required-to-use-repair-shops", "*");
}
public int getRepairCost() {
return propertiesFile.getInt("repair-cost", 0);
}
public boolean getEnableDebugMessages() {
return propertiesFile.getBoolean("enable-debug-messages", false);
}
}