public class CommandRegister
extends java.lang.Object
All credit for this class goes to realEntity303, author of PlugManX, I just modified it to be a bit nicer
| Constructor and Description |
|---|
CommandRegister()
Initialize the command register
|
| Modifier and Type | Method and Description |
|---|---|
void |
register(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull org.bukkit.command.Command command)
Register a command from another plugin
|
void |
sync()
Refreshes the command list
|
public void register(@NotNull
@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull
@NotNull org.bukkit.command.Command command)
plugin - the plugin that owns the commandcommand - the command to registerpublic void sync()