Package valorless.rarespawns.commands
Class RSCommand
java.lang.Object
valorless.rarespawns.commands.RSCommand
Lightweight wrapper for a command invocation's context.
Bundles together the sender, the Bukkit Command instance, the label used, and the raw arguments array to simplify passing data between command handlers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String[]The raw arguments following the command label.final org.bukkit.command.CommandThe Bukkit command object being executed.final StringThe alias/label used to invoke the command.final org.bukkit.command.CommandSenderThe source issuing the command (player, console, etc.). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sender
public final org.bukkit.command.CommandSender senderThe source issuing the command (player, console, etc.). -
command
public final org.bukkit.command.Command commandThe Bukkit command object being executed. -
label
The alias/label used to invoke the command. -
args
The raw arguments following the command label.
-
-
Constructor Details
-
RSCommand
public RSCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Constructs a new command context wrapper.- Parameters:
sender- the entity that issued the commandcommand- the Bukkit Command being executedlabel- the alias used to invoke the commandargs- the raw argument array
-