diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 5abe83c61..e9e08aad4 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -8,8 +8,11 @@ deploy webhooks to print changelog successfully `` That's all, matcher will stop when detects next line started with `###` match + ### 4.7.2 (30.12.2023) * Fixed No price set for shop item on all locales +* Changed kit loading +* Added file based kits /kits ### 4.7.0 (10.08.2023) * Added up to 1.20 compatibility diff --git a/src/main/java/plugily/projects/villagedefense/Main.java b/src/main/java/plugily/projects/villagedefense/Main.java index 7d0847b11..78a313d2a 100644 --- a/src/main/java/plugily/projects/villagedefense/Main.java +++ b/src/main/java/plugily/projects/villagedefense/Main.java @@ -124,10 +124,14 @@ public void initializePluginClasses() { public void addKits() { long start = System.currentTimeMillis(); getDebugger().debug("Adding kits..."); + addFileName("kits/archer"); + addFileName("kits/knight"); + addFileName("kits/naked"); List optionalConfigurations = new ArrayList<>(); //optionalConfigurations.add("vd-ability"); + getKitRegistry().setHandleItem((player, itemStack) -> { //todo return itemStack; diff --git a/src/main/resources/kits/knight.yml b/src/main/resources/kits/knight.yml index c1260bfb9..c9f1531d7 100644 --- a/src/main/resources/kits/knight.yml +++ b/src/main/resources/kits/knight.yml @@ -1,4 +1,5 @@ name: §7§2Knight +default_kit: true display_item: material: WOODEN_SWORD enabled: true