• Registers a command.

    Parameters

    • name: string

      The name of this command (what players will type to use it, eg: /heal).

      This decorator should be used on a valid CommandCallback method.

    Returns ((target: any, key: string, descriptor: TypedPropertyDescriptor<CommandCallback>) => void)

      • (target: any, key: string, descriptor: TypedPropertyDescriptor<CommandCallback>): void
      • Parameters

        • target: any
        • key: string
        • descriptor: TypedPropertyDescriptor<CommandCallback>

        Returns void

Generated using TypeDoc