Add lombok

This commit is contained in:
Len
2022-07-04 11:04:13 +02:00
parent 5c9141003f
commit 10ea384164
9 changed files with 111 additions and 12 deletions
@@ -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);
}
}
@@ -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) {