Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.37 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.37 KB

MCUtils

Latest Release

A small library with a collection of useful functions for Minecraft Paper plugins.

Install as dependency in Maven/Gradle

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!

Usage/Overview of Features

Please see the javadoc for the full API reference:

Copy Plugin Resource to Config Directory

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) 

Download image from URL

This function downloads an image from a URL and returns the image as a BufferedImage.

ImageUtils.downloadImage(String)
ImageUtils.downloadImage(URL)

TODO:

  • Config helper stuff
  • Logging helper stuff
  • And more?