Add lombok
This commit is contained in:
@@ -23,4 +23,10 @@ public class Config extends AbstractConfiguration {
|
||||
config.readConfig(Config.class, null);
|
||||
}
|
||||
|
||||
public static int shopLimit = 100;
|
||||
private static void shopSettings() {
|
||||
String path = "shop-settings.";
|
||||
shopLimit = config.getInt(path + "player-shop-limit", shopLimit);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+5
-5
@@ -1,20 +1,20 @@
|
||||
package com.alttd.playershops.config;
|
||||
|
||||
public class ShopMessageConfig {
|
||||
public class ShopTypeConfig {
|
||||
|
||||
private final String shopType;
|
||||
private final String configPath;
|
||||
private final String defaultPath;
|
||||
|
||||
public ShopMessageConfig(String shopType) {
|
||||
public ShopTypeConfig(String shopType) {
|
||||
this.shopType = shopType;
|
||||
this.configPath = "shop.text." + this.shopType + ".";
|
||||
this.defaultPath = "shop.text.default.";
|
||||
this.configPath = "shop.type." + this.shopType + ".";
|
||||
this.defaultPath = "shop.type.default.";
|
||||
init();
|
||||
}
|
||||
|
||||
public void init() {
|
||||
Config.config.readConfig(ShopMessageConfig.class, this);
|
||||
Config.config.readConfig(ShopTypeConfig.class, this);
|
||||
}
|
||||
|
||||
private static void set(String path, Object def) {
|
||||
Reference in New Issue
Block a user