A small library with a collection of useful functions for Minecraft Paper plugins.
Visit https://repo.bluecolored.de/#/releases/com/technicjelle/MCUtils for instructions on how to add this library as a dependency to your project.
You may want to shade the library!
Please see the javadoc for the full API reference:
- main (latest commit): https://technicjelle.com/MCUtils
- latest release: https://repo.bluecolored.de/javadoc/releases/com/technicjelle/MCUtils/latest
- Also has docs for previous releases (v2.0 and up)
This function copies any resource file from your plugin jar to your plugin's config directory. This is useful for adding default configuration files to your plugin.
ConfigUtils.copyPluginResourceToConfigDir(plugin, String fromResource, String toConfigFile, boolean overwrite)
This function downloads an image from a URL and returns the image as a BufferedImage.
ImageUtils.downloadImage(String)
ImageUtils.downloadImage(URL)
- Config helper stuff
- Logging helper stuff
- And more?