Interface ParameterizedPlayerCommand
- All Superinterfaces:
CommandExecutor
,ParameterizedCommand
,PluginCommand
This interface is designed to simplify the creation of commands and add additional functionality to them.
Commands created using this interface can only be used by players.
Commands created using this interface can only be used by players.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CommandException
exception
(ServerPlayer player, Object... path) default CommandException
exception
(ServerPlayer player, String[] keys, String[] values, Object... path) default CommandException
exception
(ServerPlayer player, String[] keys, Component[] values, Object... path) default void
execute
(CommandContext context, Audience src, Locale locale, boolean isPlayer) Command code execution.void
execute
(CommandContext context, ServerPlayer src, Locale locale) default boolean
Methods inherited from interface sawfowl.commandpack.api.commands.parameterized.ParameterizedCommand
build, builder, builderNoPerm, execute, fastBuild, getArgument, getArgument, getBoolean, getBoolean, getLocation, getPlayer, getSettingsMap, getString, getString, getUser, register
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
-
Method Details
-
execute
- Throws:
CommandException
-
execute
default void execute(CommandContext context, Audience src, Locale locale, boolean isPlayer) throws CommandException Description copied from interface:ParameterizedCommand
Command code execution.- Specified by:
execute
in interfaceParameterizedCommand
- Throws:
CommandException
-
exception
- Throws:
CommandException
-
exception
default CommandException exception(ServerPlayer player, String[] keys, String[] values, Object... path) throws CommandException - Throws:
CommandException
-
exception
default CommandException exception(ServerPlayer player, String[] keys, Component[] values, Object... path) throws CommandException - Throws:
CommandException
-
onlyPlayer
default boolean onlyPlayer()- Specified by:
onlyPlayer
in interfaceParameterizedCommand
-