Package org.geysermc.geyser.command
Class GeyserCommandExecutor
java.lang.Object
org.geysermc.geyser.command.GeyserCommandExecutor
Represents helper functions for listening to
/geyser or /geyserext commands.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeyserCommandExecutor(GeyserImpl geyser, Map<String, org.geysermc.geyser.api.command.Command> commands) -
Method Summary
Modifier and TypeMethodDescriptiongetCommand(String label) @Nullable GeyserSessiongetGeyserSession(GeyserCommandSource sender) tabComplete(GeyserCommandSource sender) Determine which subcommands to suggest in the tab complete for the main /geyser command by a given command sender.
-
Field Details
-
geyser
-
-
Constructor Details
-
GeyserCommandExecutor
public GeyserCommandExecutor(GeyserImpl geyser, Map<String, org.geysermc.geyser.api.command.Command> commands)
-
-
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
-