Package org.geysermc.geyser.command
Class GeyserCommand
java.lang.Object
org.geysermc.geyser.command.GeyserCommand
- Direct Known Subclasses:
AdvancedTooltipsCommand,AdvancementsCommand,DumpCommand,HelpCommand,ListCommand,OffhandCommand,ReloadCommand,SettingsCommand,StatisticsCommand,StopCommand,VersionCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(GeyserSession session, CommandSender sender, String[] args)The description of the command - will attempt to be translated.getName()Used in the GUI to know what subcommands can be runbooleanShortcut togetSubCommands().isEmpty().booleanUsed to send a deny message to Java players if this command can only be used by Bedrock players.booleanIf false, hides the command from being shown on the Geyser Standalone GUI.voidsetAliases(List<String> aliases)
-
Field Details
-
name
-
description
The description of the command - will attempt to be translated. -
permission
-
-
Constructor Details
-
GeyserCommand
-
-
Method Details
-
execute
-
isExecutableOnConsole
public boolean isExecutableOnConsole()If false, hides the command from being shown on the Geyser Standalone GUI.- Returns:
- true if the command can be run on the server console
-
getSubCommands
Used in the GUI to know what subcommands can be run- Returns:
- a list of all possible subcommands, or empty if none.
-
hasSubCommands
public boolean hasSubCommands()Shortcut togetSubCommands().isEmpty().- Returns:
- true if there are subcommand present for this command.
-
isBedrockOnly
public boolean isBedrockOnly()Used to send a deny message to Java players if this command can only be used by Bedrock players.- Returns:
- true if this command can only be used by Bedrock players.
-
getName
-
getDescription
The description of the command - will attempt to be translated. -
getPermission
-
getAliases
-
setAliases
-