Skip to content
Success

Changes

Summary

  1. individual costs for NPC commands (#3033) (commit: a2d7284) (details)
Commit a2d7284fbc6d71ed39b1009279c5553d053a0fbd by noreply
individual costs for NPC commands (#3033)

* Add individual cost option for `/npc cmd cost`

* Add individual experience cost option for `/npc cmd expcost`

* Begin individual item cost impl

Everything is finished except for saving/loading the items. I just need to figure out how to properly save the ItemStacks either by using the DataKey or by somehow figuring out how to use the Persist API

* Add item saving and loading

* Add cost and exp cost to describe message

* Remove debug/todo things

* Make `-1` default to allow for cost-free commands

* Update `describe` function to have proper space alignment

* Change names of cost values

* Update parameter name
(commit: a2d7284)
The file was modifiedmain/src/main/resources/messages_en.properties
The file was modifiedmain/src/main/java/net/citizensnpcs/trait/CommandTrait.java
The file was modifiedmain/src/main/java/net/citizensnpcs/commands/NPCCommands.java
The file was modifiedmain/src/main/java/net/citizensnpcs/util/Messages.java