A Minecraft plugin for automatically replacing a broken item or depleted item stack in the hotbar from the inventory if possible.
This plugin works for craftbukkit/spigotMC and paperMC from Minecraft version 1.13 to 1.17.
See: https://paper.readthedocs.io/en/latest/about/faq.html
The project is build on Java SDK 8 and can be packaged with maven (https://maven.apache.org/).
With maven and JDK 8 installed you can simply build the plugin, by executing:
$ mvn package
The package will then be build in target/HotbarRefill-VERSION.jar. Put the plugin into the plugins directory of your Minecraft Server, restart and enjoy.