Interface RawPlayerCommand
- All Superinterfaces:
Command
,Command.Raw
,PluginCommand
,RawCommand
This interface is designed to simplify the creation of RawSettings commands.
Commands created using this interface can only be used by players.
Commands created using this interface can only be used by players.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.command.Command
Command.Builder, Command.Parameterized, Command.Raw
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canExecute
(CommandCause cause) Determining who can use the command.default void
process
(CommandCause cause, Audience audience, Locale locale, boolean isPlayer, String[] args, ArgumentReader.Mutable arguments) Command code execution.void
process
(CommandCause cause, ServerPlayer src, Locale locale, String[] args, ArgumentReader.Mutable arguments) Command code execution.Methods inherited from interface sawfowl.commandpack.api.commands.PluginCommand
checkCooldown, command, delay, economy, exception, exception, exception, exception, exception, exception, exception, exception, getCommandSettings, getComponent, getComponent, getComponent, getContainer, getCooldowns, getListTexts, getLocale, getPluginLocale, getText, getText, isEnable, permission, sendPaginationList, success, text, text, timeFormat, trackingName
Methods inherited from interface sawfowl.commandpack.api.commands.raw.RawCommand
checkArguments, checkChildAndArguments, commandTree, complete, completeArgs, completeChild, containsArgs, containsChild, enableAutoComplete, exceptionAppendUsage, exceptionAppendUsage, extendedDescription, extendedDescription, getArgument, getArgument, getArgument, getArguments, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getChildExecutors, getCurrency, getCurrency, getDouble, getDouble, getDurationArg, getDurationArg, getEmptyCompletion, getEnchantmentType, getEnchantmentType, getInteger, getInteger, getLocale, getLocale, getLong, getLong, getPlayer, getPlayer, getString, getString, getWorld, getWorld, getWorldType, getWorldType, parseDouble, parseDuration, parseInt, process, register, shortDescription, shortDescription
-
Method Details
-
process
void process(CommandCause cause, ServerPlayer src, Locale locale, String[] args, ArgumentReader.Mutable arguments) throws CommandException Command code execution.- Throws:
CommandException
-
process
default void process(CommandCause cause, Audience audience, Locale locale, boolean isPlayer, String[] args, ArgumentReader.Mutable arguments) throws CommandException Description copied from interface:RawCommand
Command code execution.- Specified by:
process
in interfaceRawCommand
- Throws:
CommandException
-
canExecute
Description copied from interface:RawCommand
Determining who can use the command.- Specified by:
canExecute
in interfaceCommand
- Specified by:
canExecute
in interfaceRawCommand
-