StatusCommand

public class StatusCommand extends AdvancedCommand

/rspm status — operator-facing diagnostic dump.

The intent is "show me everything an operator could plausibly need when something's broken, in one shot." Specifically:

  • Plugin meta — version, deploy mode (standalone vs network backend), network key
  • Java pack state — mixed/not, file size, sha1, output path
  • Bedrock pack state — generated/not, file size, Geyser mappings present, Geyser folder
  • Hosting state — which delivery path is active (self-host vs remote vs neither), the actual URL clients will see, the resolved external host (raw + auto-detected public IP)
  • Config flags — all the knobs that control the above so the operator doesn't have to open config.yml in another window
  • Integration sanity — Floodgate and Geyser plugin presence, autoHost flag

Output is rendered with MagmaCore's color-tag syntax (&-prefixed); the client renders this in the chat / console as legacy section-symbol formatting. Sections are visually separated by blank lines for readability in the chat log.

Threading: all values read here are either volatile accessors or simple static config fields populated at boot. No network I/O — in particular currentResolvedHost never runs the public-IP probe — so calling this command must not slow down the main thread.

Permission:resourcepackmanager.* (same as reload, since the output reveals internal-state details that aren't useful to non-admins).

Constructors

Link copied to clipboard
public void StatusCommand()

Inherited properties

Link copied to clipboard
public final List<String> aliases
Link copied to clipboard
public final List<ICommandArgument> argumentsList
Link copied to clipboard
public final Map<String, Integer> argumentsMap
Link copied to clipboard
public String description
Link copied to clipboard
public String permission
Link copied to clipboard
Link copied to clipboard
public String usage

Functions

Link copied to clipboard
public void execute(CommandData commandData)

Inherited functions

Link copied to clipboard
protected void addArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addLiteral(String key)
Link copied to clipboard
protected void addOptionalArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addOptionalVarargsArgument(String key, ICommandArgument arg)
Link copied to clipboard
protected void addPlayerArgument(String key)
Link copied to clipboard
protected void addVarargsArgument(String key, ICommandArgument arg)
Link copied to clipboard
public boolean aliasMatches(String potentialAlias)
Link copied to clipboard
public boolean aliasStartMatches(String potentialAliasStart)
Link copied to clipboard
public List<String> getAliases()
Link copied to clipboard
Link copied to clipboard
public Map<String, Integer> getArgumentsMap()
Link copied to clipboard
public String getDescription()
Link copied to clipboard
public Double getDoubleArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public Integer getIntegerArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getPermission()
Link copied to clipboard
public String getPermissionMessage()
Link copied to clipboard
Link copied to clipboard
public String getStringArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getStringSequenceArgument(String key, CommandSender commandSender, Array<String> args)
Link copied to clipboard
public String getUsage()
Link copied to clipboard
public boolean isEnabled()
Link copied to clipboard
public List<String> onTabComplete(Array<String> args)
Link copied to clipboard
protected void setDescription(String description)
Link copied to clipboard
protected void setPermission(String permission)
Link copied to clipboard
protected void setSenderType(SenderType senderType)
Link copied to clipboard
protected void setUsage(String usage)
Link copied to clipboard
public static Command toBukkitCommand(JavaPlugin plugin, AdvancedCommand delegate, String name, List<String> aliases)