abstract

CommandBase

Simple synchronous command base. Override executeSync(CommandContext). Has helper methods like context.isPlayer() and context.senderAsPlayerRef(). Good for commands that dont need async operations.

Methods

void executeSync(CommandContext ctx)

Override to implement synchronous command logic. Runs on main thread.

void setPermissionGroup(GameMode gameMode)

Set minimum permission level. GameMode.Adventure = anyone, GameMode.Creative = elevated.