trait Prohibitable (View source)

Properties

static protected bool $prohibitedFromRunning

Indicates if the command should be prohibited from running.

Methods

static bool
prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

bool
isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Details

static bool prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

Parameters

bool $prohibit

Return Value

bool

protected bool isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Parameters

bool $quiet

Return Value

bool