Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.velocitypowered.api.command.SimpleCommand

        com.velocitypowered.api.command.SimpleCommand.Invocation
    • Constructor Summary

      Constructors 
      Constructor Description
      VelocityCommandImpl​(@NotNull com.alessiodp.core.common.ADPPlugin plugin, @NotNull com.alessiodp.core.common.commands.utils.ADPMainCommand mainCommand)  
    • Constructor Detail

      • VelocityCommandImpl

        public VelocityCommandImpl​(@NotNull
                                   @NotNull com.alessiodp.core.common.ADPPlugin plugin,
                                   @NotNull
                                   @NotNull com.alessiodp.core.common.commands.utils.ADPMainCommand mainCommand)
    • Method Detail

      • execute

        public void execute​(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
        Specified by:
        execute in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
      • suggest

        public List<String> suggest​(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
        Specified by:
        suggest in interface com.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:
        suggestAsync in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
      • hasPermission

        public boolean hasPermission​(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
        Specified by:
        hasPermission in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>