Class PluginCommand
java.lang.Object
org.woftnw.eof.command.PluginCommand
- Direct Known Subclasses:
AbilitiesCommand, AttributesCommand, RootCommand, SettingsCommand, TribeCommand
Represents a plugin command.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrespond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message) Respond to the sender with a message.static voidrespond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, net.kyori.adventure.text.Component message) Respond to the sender with a message.static voidrespondError(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message) Respond to the sender with a red error message.
-
Field Details
-
PLUGIN
The plugin instance.
-
-
Constructor Details
-
PluginCommand
Set up this command.- Parameters:
plugin- The plugin instance.
-
-
Method Details
-
respond
public static void respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message) Respond to the sender with a message.- Parameters:
context- The command context.message- The message to send.
-
respond
public static void respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, net.kyori.adventure.text.Component message) Respond to the sender with a message.- Parameters:
context- The command context.message- The message to send.
-
respondError
public static void respondError(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message) Respond to the sender with a red error message.- Parameters:
context- The command context.message- The message to send.
-