Class GeyserCommandExecutor

java.lang.Object
org.geysermc.geyser.command.GeyserCommandExecutor

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

  • Constructor Details

    • GeyserCommandExecutor

      public GeyserCommandExecutor(GeyserImpl geyser, Map<String,​org.geysermc.geyser.api.command.Command> commands)
  • Method Details

    • getCommand

      public GeyserCommand getCommand(String label)
    • getGeyserSession

      public @Nullable GeyserSession getGeyserSession(GeyserCommandSource sender)
    • tabComplete

      public List<String> tabComplete(GeyserCommandSource 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