Package xyz.srnyx.annoyingapi.dependency
Class CommandRegister
- java.lang.Object
-
- xyz.srnyx.annoyingapi.dependency.CommandRegister
-
public class CommandRegister extends java.lang.ObjectA class that registers commands using the Brigadier APIAll credit for this class goes to realEntity303, author of PlugManX, I just modified it to be a bit nicer
-
-
Constructor Summary
Constructors Constructor Description CommandRegister()Initialize the command register
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregister(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.command.Command command)Register a command from another pluginvoidsync()Refreshes the command list
-
-
-
Method Detail
-
register
public void register(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.command.Command command)Register a command from another plugin- Parameters:
plugin- the plugin that owns the commandcommand- the command to register
-
sync
public void sync()
Refreshes the command list
-
-