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

Field Default About
admin_tag [Admin] Admin actions/chat prefix, supports Chat colors.
hide_activity false Hide/Show admin actions.
admin_list_min_flag @css/kick Min. required flag to show in the admins command.
admin_list_req_flag none Min. required flag to use the admins command.
freeze_duration 5 Default freeze command duration.

Database config

Field Default About
tablePrefix ba_ Tables prefix. Can be left empty.
serverId -1 Reserved.

Punishments default values

Field Default About
ban_duration 30 Default ban duration, if none is provided with the command.
gag_duration 30 Default gag duration, if none is provided with the command.
mute_duration 30 Default mute duration, if none is provided with the command.
Clone this wiki locally