Command

Noir.Classes.CommandClass: NoirClass

Represents a command.


Noir.Classes.CommandClass:Init(name, aliases, requiredPermissions, requiresAuth, requiresAdmin, capsSensitive, description)

Initializes command class objects.

Parameters

  • name: string

  • aliases: table<integer, string>

  • requiredPermissions: table<integer, string>

  • requiresAuth: boolean

  • requiresAdmin: boolean

  • capsSensitive: boolean

  • description: string


Noir.Classes.CommandClass:_Use(player, message, args)

Trigger this command.

Used internally. Do not use in your code.

Parameters

  • player: NoirPlayer

  • message: string

  • args: table


Noir.Classes.CommandClass:_Matches(query)

Returns whether or not the string matches this command.

Used internally. Do not use in your code.

Parameters

  • query: string

Returns

  • boolean


Noir.Classes.CommandClass:CanUse(player)

Returns whether or not the player can use this command.

Parameters

  • player: NoirPlayer

Returns

  • boolean

Last updated