Package dev.jorel.commandapi.executors
Interface RemoteConsoleResultingCommandExecutor
- All Superinterfaces:
ResultingExecutor<org.bukkit.command.RemoteConsoleCommandSender,,BukkitRemoteConsoleCommandSender> TypedExecutor<org.bukkit.command.RemoteConsoleCommandSender,BukkitRemoteConsoleCommandSender>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface RemoteConsoleResultingCommandExecutor
extends ResultingExecutor<org.bukkit.command.RemoteConsoleCommandSender,BukkitRemoteConsoleCommandSender>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.default intrun(ExecutionInfo<org.bukkit.command.RemoteConsoleCommandSender, BukkitRemoteConsoleCommandSender> info) Executes the command.intrun(org.bukkit.command.RemoteConsoleCommandSender sender, CommandArguments args) The code to run when this command is performedMethods inherited from interface dev.jorel.commandapi.executors.ResultingExecutor
executeWith
-
Method Details
-
run
int run(org.bukkit.command.RemoteConsoleCommandSender sender, CommandArguments args) throws WrapperCommandSyntaxException The code to run when this command is performed- Parameters:
sender- The sender of this command (a player, the console etc.)args- The arguments given to this command.- Returns:
- the result of this command
- Throws:
WrapperCommandSyntaxException
-
run
default int run(ExecutionInfo<org.bukkit.command.RemoteConsoleCommandSender, BukkitRemoteConsoleCommandSender> info) throws WrapperCommandSyntaxExceptionExecutes the command.- Specified by:
runin interfaceResultingExecutor<org.bukkit.command.RemoteConsoleCommandSender,BukkitRemoteConsoleCommandSender> - Parameters:
info- The ExecutionInfo for this command- Returns:
- the value returned by this command
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-
getType
Returns the type of the sender of the current executor.- Specified by:
getTypein interfaceTypedExecutor<org.bukkit.command.RemoteConsoleCommandSender,BukkitRemoteConsoleCommandSender> - Returns:
- the type of the sender of the current executor
-