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 booleancanExecute(CommandCause cause) Determining who can use the command.default voidprocess(CommandCause cause, Audience audience, Locale locale, boolean isPlayer, String[] args, ArgumentReader.Mutable arguments) Command code execution.voidprocess(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, trackingNameMethods 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:RawCommandCommand code execution.- Specified by:
processin interfaceRawCommand- Throws:
CommandException
-
canExecute
Description copied from interface:RawCommandDetermining who can use the command.- Specified by:
canExecutein interfaceCommand- Specified by:
canExecutein interfaceRawCommand
-