First Command
This page will describe how you can create your first command with Delegate
Hooking
Plugin plugin = Bukkit.getServer().getPluginManager("<your plugin>");
Delegate.hook(plugin);Your First Command
public class Example {
/**
* Creates a simple "Hello, World!" command.
*/
public void createCommand() {
Delegate.create("hello", "Sends hello to the whole server")
.withAction(() -> Bukkit.broadcastMessage("Hello, World!"))
.build();
}
}Last updated