java.lang.Object
pro.cloudnode.smp.cloudnodemsg.command.Command
All Implemented Interfaces:
CommandExecutor, TabCompleter
Direct Known Subclasses:
IgnoreCommand, MainCommand, MessageCommand, ReplyCommand, TeamMessageCommand, ToggleMessageCommand, UnIgnoreCommand

public abstract class Command extends Object implements TabCompleter, CommandExecutor
  • Constructor Details

    • Command

      public Command()
  • Method Details

    • sendMessage

      public static boolean sendMessage(@NotNull @NotNull Audience recipient, @NotNull @NotNull Component message)
    • run

      public abstract boolean run(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull String @NotNull [] args)
    • onCommand

      public final boolean onCommand(@NotNull @NotNull CommandSender sender, @NotNull Command command, @NotNull @NotNull String label, @NotNull @NotNull String @NotNull [] args)
      Specified by:
      onCommand in interface CommandExecutor