Class CommandManager

java.lang.Object
com.marcusslover.plus.lib.command.CommandManager

public final class CommandManager extends Object
  • Constructor Details

    • CommandManager

      public CommandManager(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
  • Method Details

    • get

      @Deprecated @NotNull public static @NotNull CommandManager get(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Deprecated.
    • register

      @NotNull public @NotNull CommandManager register(@NotNull @NotNull ICommand... commands)
    • register

      @NotNull public @NotNull CommandManager register(@NotNull @NotNull ICommand command)
    • unregister

      public void unregister(@NotNull @NotNull ICommand command)
      Unregister a command.
      Parameters:
      command - the command
    • getCommands

      @NotNull public @NotNull Set<org.bukkit.command.Command> getCommands()
    • clearCommands

      public void clearCommands()