dev.jorel.commandapi.executors.ProxyResultingExecutionInfo Maven / Gradle / Ivy
package dev.jorel.commandapi.executors;
import dev.jorel.commandapi.commandsenders.BukkitNativeProxyCommandSender;
import dev.jorel.commandapi.exceptions.WrapperCommandSyntaxException;
import dev.jorel.commandapi.wrappers.NativeProxyCommandSender;
@FunctionalInterface
public interface ProxyResultingExecutionInfo extends ResultingExecutor {
/**
* The code to run when this command is performed
*
* @param info The ExecutionInfo for this command
* @return the command result
* @throws WrapperCommandSyntaxException
*/
int run(ExecutionInfo info) throws WrapperCommandSyntaxException;
/**
* Returns the type of the sender of the current executor.
* @return the type of the sender of the current executor
*/
@Override
default ExecutorType getType() {
return ExecutorType.PROXY;
}
}