Class CommandExecutor

java.lang.Object
org.geysermc.geyser.command.CommandExecutor
Direct Known Subclasses:
GeyserSpigotCommandExecutor, GeyserSpongeCommandExecutor, GeyserVelocityCommandExecutor

public class CommandExecutor extends Object
Represents helper functions for listening to /geyser commands.
  • Field Details

  • Constructor Details

    • CommandExecutor

      public CommandExecutor(GeyserImpl geyser)
  • Method Details

    • getCommand

      public GeyserCommand getCommand(String label)
    • getGeyserSession

      @Nullable public GeyserSession getGeyserSession(CommandSender sender)
    • tabComplete

      public List<String> tabComplete(CommandSender sender)
      Determine which subcommands to suggest in the tab complete for the main /geyser command by a given command sender.
      Parameters:
      sender - The command sender to receive the tab complete suggestions. If the command sender is a bedrock player, an empty list will be returned as bedrock players do not get command argument suggestions. If the command sender is not a bedrock player, bedrock commands will not be shown. If the command sender does not have the permission for a given command, the command will not be shown.
      Returns:
      A list of command names to include in the tab complete