Skip to content

Commit

Permalink
Fixed new kit loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Dec 30, 2023
1 parent 72857cb commit 85b4851
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ deploy webhooks to print changelog successfully
`<update log line>`

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
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/plugily/projects/villagedefense/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> optionalConfigurations = new ArrayList<>();
//optionalConfigurations.add("vd-ability");


getKitRegistry().setHandleItem((player, itemStack) -> {
//todo
return itemStack;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/kits/knight.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: §7§2Knight
default_kit: true
display_item:
material: WOODEN_SWORD
enabled: true
Expand Down

0 comments on commit 85b4851

Please sign in to comment.