Main Features:
Ban storage:
- All banned players are saved in a file called idbans.js. This file contains information about the players, their Discord ID, the reason for the ban, and the administrator who issued the ban.
/ban command:
- Administrators can ban players using the
/ban [discord_id] [reason] command. - Example:
/ban 888888888888 "Cheating" - The player will be banned, and their information will be recorded in the idbans.js file.
Connection check:
- Every time a player attempts to connect to the server, the system checks if their Discord ID is in the banned list.
- If the player is banned, they will receive a message in Lithuanian stating the reason for the ban and the administrator’s name, preventing them from joining the server.
Automatic disconnect:
- Once a player is banned, if they are currently in the server, they will be automatically disconnected with a message explaining the reason for the ban.
Discord notifications:
- Each ban is logged and a message is sent to a designated Discord channel via a webhook, providing details about the ban, the administrator, and the reason for it.
Example:
Command: /ban 888888888888 "Cheating"
- This will ban the player with Discord ID
888888888888 for "Cheating."
Connection attempt:
- If this player tries to connect to the server, they will receive a message:
"You are banned for: Cheating. Administrator: AdminName".
About script:
ESX
0,00 delay
Discord Logs included
Code ~ 100 lines
Showcase video: soon