Presents is a Nukkit plugin to place chests, that players can open and get random items.
Please notice, that this plugin is no more maintained by me and therefore won't work with the newer versions of Nukkit, since its API is changed very often.
But, you are free to make your own fork and update it to the latest version, anyone can do that. If you'll succeed with that, you can contact me at nukkit.ru or nukkit.io, so I can pass the resource at official forums. Also you can contact me there, if you can and are willing to maintain this repository.
Things to think about and improve:
- The
ChestManageris just a bunch of static functions and variables and so is theTextTagManagerand theMessage. - The functions of the
ChestManagerare basically useless outside of the plugin. Not a good sign. StepTaskscan be shrunk to one.- I18n: the
Messageclass can be improved and the standard translations can be provided. - Chests can be saved in a database or something else. Luckily there is the
DataProviderinterface, but it's not ideal (looking at thatsavemethod).YamlProvidercan be expanded to save to more formats, since it's based onConfigwhich supports multiple formats.