Class Command
java.lang.Object
pro.cloudnode.smp.cloudnodemsg.command.Command
- All Implemented Interfaces:
CommandExecutor
,TabCompleter
- Direct Known Subclasses:
IgnoreCommand
,MainCommand
,MessageCommand
,ReplyCommand
,TeamMessageCommand
,ToggleMessageCommand
,UnIgnoreCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
onCommand
(@NotNull CommandSender sender, Command command, @NotNull String label, @NotNull String @NotNull [] args) abstract boolean
run
(@NotNull CommandSender sender, @NotNull String label, @NotNull String @NotNull [] args) static boolean
sendMessage
(@NotNull Audience recipient, @NotNull Component message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.command.TabCompleter
onTabComplete
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
sendMessage
-
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 interfaceCommandExecutor
-