StaffCommands

by Mad
for 7 Days to Die

MAD_CPMStaffCommands Module

communityTakaro v0.4.9
(7 versions available)

Components Overview

1
config
41
commands
0
hooks
1
Cron Jobs
0
functions
17
permissions

New Module: StaffCommands

December 15, 2025
Added StaffCommands to the repository

Configuration

Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.

Configuration Schema

Configuration Properties (4)

userDiscordChannel*string
userDiscordChannel

Sends to discord

Default:
droneReplacementarrayitem
Items

Gives a drone and some extra mods

Constraints: uniqueItems
moduleLookUpstring
moduleLookUp

Uuid of the staff command module

Default:
adminCommandDiscordstring
adminCommandDiscord

Discord Channel Id of admin commands

Default: 1396394567611318293

UI Schema

No configuration properties defined. This module uses default settings.

About Configuration Schemas

The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.

Commands (41)

These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.

restoreL

/restoreLTrigger Command

Description

70FE02 (level)[-] - Sets players level

Arguments (2)

playerTargetName
stringPosition 0
Help: Players Name
Default: ""
playerTargetLevel
stringPosition 1
Help: players level
Default: ""

Function Implementation

restoreL Function

JAVASCRIPT

Usage Example

Player types: /restoreL <playerTargetName> <playerTargetLevel>

killall

/killallTrigger Command

Description

Kill all of the Zeds on the server.

Function Implementation

killall Function

JAVASCRIPT

Usage Example

Player types: /killall

th - 2

/thTrigger Command

Description

70FE02[-] Send a horde in 4 intervals in 30 seconds at a player.

Arguments (1)

playerTarget
stringPosition 0
Help: target player
Default: ""

Function Implementation

th - 2 Function

JAVASCRIPT

Usage Example

Player types: /th <playerTarget>

th - 4

/thTrigger Command

Description

70FE02[-] Send a horde in 4 intervals in 30 seconds at a player.

Arguments (1)

playerTarget
stringPosition 0
Help: target player
Default: ""

Function Implementation

th - 4 Function

JAVASCRIPT

Usage Example

Player types: /th <playerTarget>

kickall

/kickallTrigger Command

Description

Kicks all of the players off of the server

Function Implementation

kickall Function

JAVASCRIPT

Usage Example

Player types: /kickall

th - 3

/thTrigger Command

Description

70FE02[-] Send a horde in 4 intervals in 30 seconds at a player.

Arguments (1)

playerTarget
stringPosition 0
Help: Target player
Default: ""

Function Implementation

th - 3 Function

JAVASCRIPT

Usage Example

Player types: /th <playerTarget>

visitmap

/visitmapTrigger Command

Description

Open the map for Takaro and CPM.

Function Implementation

visitmap Function

JAVASCRIPT

Usage Example

Player types: /visitmap

rpd

/rpdTrigger Command

Description

70FE02[-] - Resets a player back to day 1

Arguments (1)

playerTarget
stringPosition 0
Help: the player's data you are resetting
Default: ""

Function Implementation

rpd Function

JAVASCRIPT

Usage Example

Player types: /rpd <playerTarget>

pull

/pullTrigger Command

Description

70FE02[-] - Pull a player to you. Use if /get isn't working

Arguments (1)

playerTarget
stringPosition 0
Help: Player
Default: ""

Function Implementation

pull Function

JAVASCRIPT

Usage Example

Player types: /pull <playerTarget>

rdd

/rddTrigger Command

Description

70FE02[-] - fixes max drones deployed. Kicks Player

Arguments (1)

playerTarget
stringPosition 0
Help: Person drone data is being reset for
Default: ""

Function Implementation

rdd Function

JAVASCRIPT

Usage Example

Player types: /rdd <playerTarget>

pr

/prTrigger Command

Description

Reset the POI you are standing in

Function Implementation

pr Function

JAVASCRIPT

Usage Example

Player types: /pr

unmute

/unmuteTrigger Command

Description

70FE02[-] - Unmute player

Arguments (1)

person
stringPosition 0
Help: player to be unmuted
Default: ""

Function Implementation

unmute Function

JAVASCRIPT

Usage Example

Player types: /unmute <person>

am

/amTrigger Command

Description

Creative mode and debug menu. Reserved for admins. Excessive use will remove the ability to use it.

Function Implementation

am Function

JAVASCRIPT

Usage Example

Player types: /am

arrest

/arrestTrigger Command

Description

70FE02 (reason)[-]

Arguments (2)

playerTarget
stringPosition 0
Help: Other player's name
Default: ""
reasoning
stringPosition 1
Help: Reason
Default: ""Contact a moderator to be released""

Function Implementation

arrest Function

JAVASCRIPT

Usage Example

Player types: /arrest <playerTarget> <reasoning>

replace

/replaceTrigger Command

Description

Gives a patreon drone and 8 cargo mos

Function Implementation

replace Function

JAVASCRIPT

Usage Example

Player types: /replace

avisit

/avisitTrigger Command

Description

70FE02[-] - Lets you visit a player bypassing needing to be friends and does NOT use Twinkies

Arguments (1)

playerTarget
stringPosition 0
Help: Player teleporting to
Default: ""

Function Implementation

avisit Function

JAVASCRIPT

Usage Example

Player types: /avisit <playerTarget>

ban

/banTrigger Command

Description

70FE02 (reason)[-]

Arguments (2)

person
stringPosition 0
Help: Person being banned
Default: ""
reasoning
stringPosition 1
Help: Reason they are banned
Default: "contact a moderator for the reason"

Function Implementation

ban Function

JAVASCRIPT

Usage Example

Player types: /ban <person> <reasoning>

buff - 1

/buffTrigger Command

Description

70FE02[-] - Gives the player god mode for a few minutes

Arguments (1)

playerTarget
stringPosition 0
Help: playerTarget
Default: ""

Function Implementation

buff - 1 Function

JAVASCRIPT

Usage Example

Player types: /buff <playerTarget>

buff - 2

/buffTrigger Command

Description

Ends players buff

Arguments (1)

playerTarget
stringPosition 0
Help: why
Default: ""

Function Implementation

buff - 2 Function

JAVASCRIPT

Usage Example

Player types: /buff <playerTarget>

kick

/kickTrigger Command

Description

70FE02 (reason in quotes)[-]

Arguments (2)

person
stringPosition 0
Help: Player getting kicked
Default: ""
reasoning
stringPosition 1
Help: Reason for being kicked
Default: "Contact a moderator for a kick reason"

Function Implementation

kick Function

JAVASCRIPT

Usage Example

Player types: /kick <person> <reasoning>

kill

/killTrigger Command

Description

70FE02[-] - Will kill the player. must be ran twice to be confirmed.

Arguments (1)

playerTarget
stringPosition 0
Help: The player you want to kill
Default: ""

Function Implementation

kill Function

JAVASCRIPT

Usage Example

Player types: /kill <playerTarget>

mute

/muteTrigger Command

Description

70FE02 "(reason)"[-]

Arguments (2)

person
stringPosition 0
Help: Person to be muted
Default: ""
reasoning
stringPosition 1
Help: Reason they were muted
Default: "No reason given"

Function Implementation

mute Function

JAVASCRIPT

Usage Example

Player types: /mute <person> <reasoning>

ocn

/ocnTrigger Command

Description

70FE02 (new name)[-] - Change a player's name in chat.

Arguments (2)

playerTarget
stringPosition 0
Help: target
Default: ""
pname
stringPosition 1
Help: new name
Default: ""

Function Implementation

ocn Function

JAVASCRIPT

Usage Example

Player types: /ocn <playerTarget> <pname>

release

/releaseTrigger Command

Description

70FE02[-] - releases from jail

Arguments (1)

playerTarget
stringPosition 0
Help: Player that's released
Default: ""

Function Implementation

release Function

JAVASCRIPT

Usage Example

Player types: /release <playerTarget>

restoreS

/restoreSTrigger Command

Description

70FE02 (amount)[-] - sets a players skilll points to the amount

Arguments (2)

playerTargetName
stringPosition 0
Help: players name
Default: ""
playerTargetLevel
stringPosition 1
Help: players skill points
Default: ""

Function Implementation

restoreS Function

JAVASCRIPT

Usage Example

Player types: /restoreS <playerTargetName> <playerTargetLevel>

restart

/restartTrigger Command

Description

70FE02[-] - starts a server restart.

Arguments (1)

timer
numberPosition 0
Help: minutes till shutdown
Default: "10"

Function Implementation

restart Function

JAVASCRIPT

Usage Example

Player types: /restart <timer>

brender

/brenderTrigger Command

Description

[70FE02](programmed name of poi) (rotation) (height)[-] - only works in the console (f1 menu)/ Do not fly. use blocks to mark position. [02FEDC]bundo[-] to undo.

Function Implementation

brender Function

JAVASCRIPT

Usage Example

Player types: /brender

llp

/llpTrigger Command

Description

Lists closest land claim to your position

Function Implementation

llp Function

JAVASCRIPT

Usage Example

Player types: /llp

removeLCB

/removeLCBTrigger Command

Description

Removes the Land Claim Block closest to your position

Function Implementation

removeLCB Function

JAVASCRIPT

Usage Example

Player types: /removeLCB

bundo

/bundoTrigger Command

Description

Only works in the console (f1 menu). Un does brender

Function Implementation

bundo Function

JAVASCRIPT

Usage Example

Player types: /bundo

rvr

/rvrTrigger Command

Description

70FE02[-] - Resets a vending rental for a player.

Arguments (1)

playerTarget
stringPosition 0
Help: target player
Default: ""

Function Implementation

rvr Function

JAVASCRIPT

Usage Example

Player types: /rvr <playerTarget>

setwaypointpublic

/setwaypointpublicTrigger Command

Description

[70FE02](waypoint name)[-] - sets a waypoint public

Function Implementation

setwaypointpublic Function

JAVASCRIPT

Usage Example

Player types: /setwaypointpublic

wi

/wiTrigger Command

Description

70FE02 <[bag] [belt] [equipment] [all]>[-] - wipes inventory of chosen option. Bag = inventory

Arguments (2)

playerTarget
stringPosition 0
Help: person
Default: ""
tool
stringPosition 1
Help: belt, bag, equipment, all
Default: "belt"

Function Implementation

wi Function

JAVASCRIPT

Usage Example

Player types: /wi <playerTarget> <tool>

th - 1

/thTrigger Command

Description

70FE02[-] Send a horde in 4 intervals in 30 seconds at a player.

Arguments (1)

playerTarget
stringPosition 0
Help: person you're sending the horde after
Default: ""

Function Implementation

th - 1 Function

JAVASCRIPT

Usage Example

Player types: /th <playerTarget>

abed

/abedTrigger Command

Description

70FE02[-] - Teleports an admin to a players bed roll. Player must be online

Arguments (1)

playerTarget
stringPosition 0
Help: why
Default: ""

Function Implementation

abed Function

JAVASCRIPT

Usage Example

Player types: /abed <playerTarget>

admin

/adminTrigger Command

Description

A list of admin help commands for admins. [70FE02](name of command)[-] for help with a specific command

Arguments (1)

commandName
stringPosition 0
Help: why
Default: "all"

Function Implementation

admin Function

JAVASCRIPT

Usage Example

Player types: /admin <commandName>

setjail

/setjailTrigger Command

Description

Set an 11x11 area to put jail birds in.

Function Implementation

setjail Function

JAVASCRIPT

Usage Example

Player types: /setjail

zomb

/zombTrigger Command

Description

Stand directly above your land claim when you run this command!

Function Implementation

zomb Function

JAVASCRIPT

Usage Example

Player types: /zomb

revokecurrency

/revokecurrencyTrigger Command

Description

70FE02 (amount)[-]

Arguments (2)

receiver
playerPosition 0
Help: The player to revoke currency from
Default: ""
amount
numberPosition 1
Help: The amount of currency to revoke
Default: ""

Function Implementation

revokecurrency Function

JAVASCRIPT

Usage Example

Player types: /revokecurrency <receiver> <amount>

revoke

/revokecurrencyTrigger Command

Description

70FE02 (amount)[-]

Function Implementation

revoke Function

JAVASCRIPT

Usage Example

Player types: /revokecurrency

addcurrency

/addcurrencyTrigger Command

Description

70FE02 (amount)[-]

Function Implementation

addcurrency Function

JAVASCRIPT

Usage Example

Player types: /addcurrency

About Module Commands

Commands allow players to interact with your module through chat. Each command has a trigger word that players type (prefixed with /), optional arguments for parameters, and a JavaScript function that executes when the command is used. Arguments are automatically validated and passed to the function.

Scheduled Jobs (1)

These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.

discordStaffCommands

0 0 * * *Schedule

Schedule Details

Cron Expression
0 0 * * *
Human-Readable Schedule

Daily at midnight

Function Implementation

discordStaffCommands Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

About Scheduled Jobs

Cron jobs allow your module to execute code automatically on a schedule. Each job has a cron expression that defines when it runs, and a JavaScript function that executes at those times. Jobs run server-side and can perform maintenance tasks, send notifications, or update game state automatically.

Permissions (17)

These permissions control who can access different features of this module. Administrators can assign these permissions to roles, allowing fine-grained access control.

General Permissions

17 permissions

Buff

BUFFPermission Key
Description

Buff another player

Permission Details
Full Key:BUFF
Can Have Count:No
Category:General

Admin Menu

CM_DMPermission Key
Description

Creative mode and debug menu

Permission Details
Full Key:CM_DM
Can Have Count:No
Category:General

Kill player

KILL_PLAYERPermission Key
Description

Kill a player

Permission Details
Full Key:KILL_PLAYER
Can Have Count:No
Category:General

List Land Claims nearby

LIST_LANDCLAIMSPermission Key
Description

Lists land claims near by

Permission Details
Full Key:LIST_LANDCLAIMS
Can Have Count:No
Category:General

Mute a Player

MUTEPermission Key
Description

Mute unruly players in game

Permission Details
Full Key:MUTE
Can Have Count:No
Category:General

Reset Drone Data

RDDPermission Key
Description

Resets player drone data to place a new one

Permission Details
Full Key:RDD
Can Have Count:No
Category:General

Release Jail

RELEASEPermission Key
Description

Release a player from jail

Permission Details
Full Key:RELEASE
Can Have Count:No
Category:General

Remove land claims

REMOVE_LANDCLAIMSPermission Key
Description

remove nearby land claims

Permission Details
Full Key:REMOVE_LANDCLAIMS
Can Have Count:No
Category:General

Rest Chunks

RESET_CHUNKSPermission Key
Description

Reset Chunks Permission

Permission Details
Full Key:RESET_CHUNKS
Can Have Count:No
Category:General

Reset Player Data

RESET_PLAYERPermission Key
Description

Resets a player's corrupted data

Permission Details
Full Key:RESET_PLAYER
Can Have Count:No
Category:General

Reset Prefabs

RESET_PREFABPermission Key
Description

Reset prefab permission

Permission Details
Full Key:RESET_PREFAB
Can Have Count:No
Category:General

Set Jail Location

SET_JAILPermission Key
Description

Set the location of your jail

Permission Details
Full Key:SET_JAIL
Can Have Count:No
Category:General

Staff Commands

STAFF_COMMANDSPermission Key
Description

Commands for staff to use without using Currency

Permission Details
Full Key:STAFF_COMMANDS
Can Have Count:No
Category:General

Unmute

UNMUTEPermission Key
Description

Unmute a player

Permission Details
Full Key:UNMUTE
Can Have Count:No
Category:General

Visit Map

VISIT_MAPPermission Key
Description

Visit the map to unlock for Takaro and CPM

Permission Details
Full Key:VISIT_MAP
Can Have Count:No
Category:General

Wipe Inventory

WIPE_INVENTORYPermission Key
Description

Wipe Inventory

Permission Details
Full Key:WIPE_INVENTORY
Can Have Count:No
Category:General

Zombie Free Self

ZOMB_FREE_SELFPermission Key
Description

Zombie free command for admins to run the command for their personal house

Permission Details
Full Key:ZOMB_FREE_SELF
Can Have Count:No
Category:General

About Module Permissions

Permissions control access to module features and functionality. Each permission has a unique key for identification, a friendly name for display, and a description explaining what it allows. Some permissions are countable, meaning they can have numeric values or limits assigned. Administrators assign these permissions to user roles to control who can use different module features.