Interface in @minecraft/server
Who ran a custom command.
import type { CustomCommandOrigin } from '@minecraft/server';Properties
Section titled “Properties”sourceType
Section titled “sourceType”read-only
readonly sourceType: CustomCommandSource;Types
sourceEntity
Section titled “sourceEntity”read-only optional
readonly sourceEntity?: Player;The player who ran it, if a player did.
Types
initiator
Section titled “initiator”read-only optional
readonly initiator?: Player;Types