Package org.geysermc.connector.command
Class CommandExecutor
java.lang.Object
org.geysermc.connector.command.CommandExecutor
Represents helper functions for listening to
/geyser commands.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommand(String label)getGeyserSession(CommandSender sender)tabComplete(CommandSender sender)Determine which subcommands to suggest in the tab complete for the main /geyser command by a given command sender.
-
Field Details
-
connector
-
-
Constructor Details
-
CommandExecutor
public CommandExecutor()
-
-
Method Details
-
getCommand
-
getGeyserSession
-
tabComplete
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
-