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(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 |
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(CommandSender sender, String[] args)
public boolean isExecutableOnConsole()
public List<String> getSubCommands()
public boolean hasSubCommands()
getSubCommands().isEmpty().Copyright © 2020 GeyserMC. All rights reserved.