Package org.geysermc.geyser.command
Class GeyserCommand
java.lang.Object
org.geysermc.geyser.command.GeyserCommand
- Direct Known Subclasses:
AdvancedTooltipsCommand,AdvancementsCommand,ConnectionTestCommand,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)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.booleanUsed for permission defaults on server implementations.
-
Field Details
-
name
-
description
The description of the command - will attempt to be translated. -
permission
-
-
Constructor Details
-
GeyserCommand
public 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.
-
isSuggestedOpOnly
public boolean isSuggestedOpOnly()Used for permission defaults on server implementations.- Returns:
- if this command is designated to be used only by server operators.
-