Skip to content

Getting started

Hackmastr edited this page Dec 18, 2023 · 1 revision

Getting started

Features

1. Muting 🔇

/mute <target> [duration] [reason]
  • <target>: this can be an in-game target or a steamID.
  • <duration>: (optional) Duration in minutes.
  • <reason>: (optional) Reason.

2. Gagging 💬

/gag <target> [duration] [reason]
  • <target>: this can be an in-game target or a steamID.
  • <duration>: (optional) Duration in minutes.
  • <reason>: (optional) Reason.

3. Banning ⛔

/ban <player> [duration] [reason]
  • <target>: this can be an in-game target or a steamID.
  • <duration>: (optional) Duration in minutes.
  • <reason>: (optional) Reason.

Note

Optional fields have configurable values.

Configuration

Database

Caution

In order for bans/mutes/gags to expire, MySQL/MariaDB events scheduler must be on.

You can check if it's ON:

SHOW VARIABLES LIKE'event_scheduler';

If the result is OFF, then it must be enabled. More info at:

Config.

{
"admin_tag": "\u0006[Admin]\u0001",
"hide_activity": false,
"admin_say_text": "\u0003{0}\u0001: {1}",
"admin_say_text_admins": "(Admins only) \u0003{0}\u0001: {1}",
"admin_list_min_flag": "@css/kick",
"admin_list_req_flag": "",
"freeze_duration": 5,
"database": {
"host": "192.168.0.118",
"username": "root",
"password": "12345",
"database": "basic_admin",
"tablePrefix": "ba",
"port": 3306,
"serverId": -1
},
"punishments": {
"defaults": {
"ban_duration": 30,
"gag_duration": 30,
"mute_duration": 30
}
},
"ConfigVersion": 1
}

General

FieldDefaultAbout
admin_tag[Admin]Admin actions/chat prefix, supports Chat colors.
hide_activityfalseHide/Show admin actions.
admin_list_min_flag@css/kickMin. required flag to show in the admins command.
admin_list_req_flagnoneMin. required flag to use the admins command.
freeze_duration5Default freeze command duration.

Database config

FieldDefaultAbout
tablePrefixba_Tables prefix. Can be left empty.
serverId-1Reserved.

Punishments default values

FieldDefaultAbout
ban_duration30Default ban duration, if none is provided with the command.
gag_duration30Default gag duration, if none is provided with the command.
mute_duration30Default mute duration, if none is provided with the command.