public abstract class GeyserCommand extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
The description of the command - will attempt to be translated.
|
protected String |
name |
protected String |
permission |
| Constructor and Description |
|---|
GeyserCommand() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute(GeyserSession session,
CommandSender sender,
String[] args) |
List<String> |
getSubCommands()
Used in the GUI to know what subcommands can be run
|
boolean |
hasSubCommands()
Shortcut to
getSubCommands().isEmpty(). |
boolean |
isBedrockOnly()
Used to send a deny message to Java players if this command can only be used by Bedrock players.
|
boolean |
isExecutableOnConsole()
If false, hides the command from being shown on the Geyser Standalone GUI.
|
protected final String name
protected final String description
protected final String permission
public abstract void execute(@Nullable GeyserSession session, CommandSender sender, String[] args)
public boolean isExecutableOnConsole()
public List<String> getSubCommands()
public boolean hasSubCommands()
getSubCommands().isEmpty().public boolean isBedrockOnly()
Copyright © 2021 GeyserMC. All rights reserved.