Package de.kentoj.kencommandapi
Class VelocityKenCommandApi
java.lang.Object
de.kentoj.kencommandapi.impl.AbstractKenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
de.kentoj.kencommandapi.VelocityKenCommandApi
- All Implemented Interfaces:
de.kentoj.kencommandapi.api.KenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
public class VelocityKenCommandApi
extends de.kentoj.kencommandapi.impl.AbstractKenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(com.velocitypowered.api.command.CommandSource sender, Map<String, de.kentoj.kencommandapi.api.processing.ParsedArgument<com.velocitypowered.api.command.CommandSource, VelocityCommandContext, ?>> parsedArguments) booleanhasPermission(com.velocitypowered.api.command.CommandSource commandSource, String permission) voidregister(de.kentoj.kencommandapi.api.nodes.CommandNode<com.velocitypowered.api.command.CommandSource, VelocityCommandContext> rootNode) voidsendErrorMessage(com.velocitypowered.api.command.CommandSource sender, de.kentoj.kencommandapi.api.processing.CommandException ex) Methods inherited from class de.kentoj.kencommandapi.impl.AbstractKenCommandApi
createArgument, createNode, invoke
-
Constructor Details
-
VelocityKenCommandApi
public VelocityKenCommandApi(com.velocitypowered.api.proxy.ProxyServer server)
-
-
Method Details
-
createContext
public VelocityCommandContext createContext(com.velocitypowered.api.command.CommandSource sender, Map<String, de.kentoj.kencommandapi.api.processing.ParsedArgument<com.velocitypowered.api.command.CommandSource, VelocityCommandContext, ?>> parsedArguments) - Specified by:
createContextin classde.kentoj.kencommandapi.impl.AbstractKenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
-
sendErrorMessage
public void sendErrorMessage(com.velocitypowered.api.command.CommandSource sender, de.kentoj.kencommandapi.api.processing.CommandException ex) - Specified by:
sendErrorMessagein classde.kentoj.kencommandapi.impl.AbstractKenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
-
hasPermission
public boolean hasPermission(com.velocitypowered.api.command.CommandSource commandSource, String permission) - Specified by:
hasPermissionin classde.kentoj.kencommandapi.impl.AbstractKenCommandApi<com.velocitypowered.api.command.CommandSource,VelocityCommandContext>
-
register
public void register(de.kentoj.kencommandapi.api.nodes.CommandNode<com.velocitypowered.api.command.CommandSource, VelocityCommandContext> rootNode)
-