Module: dumb

Globally shadow mute a connection. Optional allies array will see muted messages.
Version:
  • 1.0.0
Author:
  • OpSimple ( https://github.com/OpSimple )
Source:

Methods

(static) chatCheck(env)

Executes every time an incoming chat command is invoked; hook incoming chat commands, shadow-prevent chat if they are muzzled
Parameters:
Name Type Description
env Object Enviroment object with references to core, server, socket & payload
Source:
Returns:

(static) init(core) → {void}

Automatically executes once after server is ready
Parameters:
Name Type Description
core Object Reference to core enviroment object
Source:
Returns:
Type
void

(static) initHooks(server) → {void}

Automatically executes once after server is ready to register this modules hooks
Parameters:
Name Type Description
server Object Reference to server enviroment object
Source:
Returns:
Type
void

(static) inviteCheck(env)

Executes every time an incoming chat command is invoked; shadow-prevent all invites from muzzled users
Parameters:
Name Type Description
env Object Enviroment object with references to core, server, socket & payload
Source:
Returns:

(static) run(env) → {void}

Executes when invoked by a remote client
Parameters:
Name Type Description
env Object Enviroment object with references to core, server, socket & payload
Source:
Returns:
Type
void

(static) whisperCheck(env)

Executes every time an incoming chat command is invoked; shadow-prevent all whispers from muzzled users
Parameters:
Name Type Description
env Object Enviroment object with references to core, server, socket & payload
Source:
Returns:

Type Definitions

dumb/info

Module meta information
Type:
  • Object
Properties:
Name Type Description
name string Module command name
category string Module category name
description string Information about module
usage string Information about module usage
Source: