byond - Modules - TypesVar Details - Proc Details

/datum/cmtv_command

Vars

descriptionHelptext of the command. Keep it short, we've only got 500 characters to play with.
global_cooldown_timeHow long the cooldown must be which applies to everyone, other than moderators
nameWhat must be invoked in chat to trigger this
require_moderatorIf this command requires being a moderator to invoke
successfulIf the /datum/cmtv_command/proc/execute function determines no cooldown should be applied, this should be toggled to false. For instance, when a command fails.
user_cooldown_timeHow long the personal cooldown is which applies to individuals, other than moderators

Procs

executeThe actual execution of the command. The returned text is what will be displayed in chat.

Var Details

description

Helptext of the command. Keep it short, we've only got 500 characters to play with.

global_cooldown_time

How long the cooldown must be which applies to everyone, other than moderators

name

What must be invoked in chat to trigger this

require_moderator

If this command requires being a moderator to invoke

successful

If the /datum/cmtv_command/proc/execute function determines no cooldown should be applied, this should be toggled to false. For instance, when a command fails.

user_cooldown_time

How long the personal cooldown is which applies to individuals, other than moderators

Proc Details

execute

The actual execution of the command. The returned text is what will be displayed in chat.