Skip to content

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

Notifications You must be signed in to change notification settings

TechnicJelle/MCUtils

Repository files navigation

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?

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages