Class VelocityCommandImpl
- java.lang.Object
-
- com.alessiodp.core.velocity.commands.utils.VelocityCommandImpl
-
- All Implemented Interfaces:
com.velocitypowered.api.command.Command,com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>,com.velocitypowered.api.command.SimpleCommand
public class VelocityCommandImpl extends Object implements com.velocitypowered.api.command.SimpleCommand
-
-
Constructor Summary
Constructors Constructor Description VelocityCommandImpl(@NotNull com.alessiodp.core.common.ADPPlugin plugin, @NotNull com.alessiodp.core.common.commands.utils.ADPMainCommand mainCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)booleanhasPermission(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)List<String>suggest(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)CompletableFuture<List<String>>suggestAsync(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
-
-
-
Method Detail
-
execute
public void execute(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
- Specified by:
executein interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
suggest
public List<String> suggest(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
- Specified by:
suggestin interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
suggestAsync
public CompletableFuture<List<String>> suggestAsync(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
- Specified by:
suggestAsyncin interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
hasPermission
public boolean hasPermission(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
- Specified by:
hasPermissionin interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
-