A library with some common utilities for ease of developing Spigot plugins.
- menu library for custom menus and handling of all their events
ItemBuilder
for less headache withItemMeta
andItemStack
modifications- cooldowns that manage themselves
- plugin file handling
- miscellaneous utilities
The menu library lets the developer wrap any Inventory
with the menu classes, take control of all its common
incoming InventoryEvents
and edit its contents and viewers. The library tries to not assume too much for the
developer, reinvent inventories or interfere with them, but disables most menu interactions, which can be easily
overriden by the developer; it also comes with some pre-made classes that can be extended.
To use the library, a MenuManager
needs to be instantiated, which will manage all the menus that are passed to it.
- Add the library as a JitPack dependency via a build automation that you're using, such as Maven, Gradle, Ant, etc.
- Shade the dependency, possibly with the JAR minimization option to exclude the utilities you're not using, which will lower the file size impact of the dependency even though it's currently rather small.
- Write your code. The menu library, for example, requires you to instantiate a
MenuManager
with yourPlugin
instance to use it.