Class VelocityCommand<C extends VelocityCommandContext<C>>
java.lang.Object
site.lab0x13.scrow.commands.velocity.VelocityCommand<C>
- All Implemented Interfaces:
com.velocitypowered.api.command.Command, com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.RawCommand.Invocation>, com.velocitypowered.api.command.RawCommand
public class VelocityCommand<C extends VelocityCommandContext<C>>
extends Object
implements com.velocitypowered.api.command.RawCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.velocitypowered.api.command.RawCommand
com.velocitypowered.api.command.RawCommand.Invocation -
Constructor Summary
ConstructorsConstructorDescriptionVelocityCommand(site.lab0x13.scrow.commands.CommandHandler<C> commandHandler, CommandContextFactory<C> commandContextFactory, site.lab0x13.scrow.commands.PlatformAdapter platformAdapter, site.lab0x13.scrow.commands.model.literal.RootLiteral<C> rootLiteral) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(com.velocitypowered.api.command.RawCommand.Invocation invocation) booleanhasPermission(com.velocitypowered.api.command.RawCommand.Invocation ctx) suggest(com.velocitypowered.api.command.RawCommand.Invocation invocation) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.velocitypowered.api.command.InvocableCommand
suggestAsync
-
Constructor Details
-
VelocityCommand
public VelocityCommand(site.lab0x13.scrow.commands.CommandHandler<C> commandHandler, CommandContextFactory<C> commandContextFactory, site.lab0x13.scrow.commands.PlatformAdapter platformAdapter, site.lab0x13.scrow.commands.model.literal.RootLiteral<C> rootLiteral)
-
-
Method Details
-
execute
public void execute(com.velocitypowered.api.command.RawCommand.Invocation invocation) - Specified by:
executein interfacecom.velocitypowered.api.command.InvocableCommand<C extends VelocityCommandContext<C>>
-
hasPermission
public boolean hasPermission(com.velocitypowered.api.command.RawCommand.Invocation ctx) - Specified by:
hasPermissionin interfacecom.velocitypowered.api.command.InvocableCommand<C extends VelocityCommandContext<C>>
-
suggest
- Specified by:
suggestin interfacecom.velocitypowered.api.command.InvocableCommand<C extends VelocityCommandContext<C>>
-