Class VelocityCloudCommand

java.lang.Object
eu.cloudnetservice.modules.bridge.impl.platform.velocity.commands.VelocityCloudCommand
All Implemented Interfaces:
com.velocitypowered.api.command.Command, com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>, com.velocitypowered.api.command.SimpleCommand

@Singleton public final class VelocityCloudCommand extends Object implements com.velocitypowered.api.command.SimpleCommand
  • Field Details

    • clusterNodeProvider

      private final eu.cloudnetservice.driver.provider.ClusterNodeProvider clusterNodeProvider
    • management

      private final PlatformBridgeManagement<?,?> management
  • Constructor Details

  • Method Details

    • execute

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

      private void executeNow(@NonNull @NonNull com.velocitypowered.api.command.CommandSource source, @NonNull @NonNull String commandLine)
    • suggestAsync

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