Home›Java›Mods›DKLib
DKLib
a usefull Lib with a lot of helpfull utils

I'm not editing this plugin. I'm only updating it.

Original thread ​

Features:
Optional dependencies:
You don't need any dependencies for this lib! But some classes depends on ProtocolLib (like BubblelessPotionEffect.java ) [look in the javadocs above the class in github, if you want to know if a class depends on Protocollib or not], if you want to use these, you have to install also the plugin ProtocolLib on your server.

For Developers: How to use DKLib in your plugin
First include the jar file as a library and install DKLib to your servers plugin folder. Then add this line to the plugin.yml of you plugin:
Code (Text):
depend: [DKLib]
For Developers: Example for using the command system
Create a class like this .
Then register the command in your main class like this:

Code (Text):
CommandManager cm;

@Override
public void onEnable(){
       //command test
       cm = new CommandManager(this);
       cm.registerCommand(new TestCommand(cm));
       //add a prefix for usage message, etc. default is ""
      cm.PREFIX = "§f[§4TEST§f] ";
}
Github (not updated):
https: github.com/michidk/DKLib

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

DKLib is a free Minecraft Java mod. Downloaded 1,139 times (via Spigot). Download it and open it directly in the game.

Explore more