Admin Module
This project is a comprehensive Roblox Admin Commands System based on the new BanAPI. It includes functionalities for banning and unbanning players, checking player ban history, and retrieving player IDs, all integrated with Discord for notification and logging purposes.
Features
- Temporarily or permanently ban players with a reason.
- Remove bans from players.
- Retrieve the ban history log file of a player.
- Retrieve a player’s ID based on their username.
- Sends notifications to a Discord webhook for all actions.
Installation
- Place AdminModule ModuleScript in the ReplicatedStorage.
- Inside the AdminModule Place RemoteEvent with name: CommandFeedbackEvent and Config ModuleScript.
- Place CommandHandler ServerScript in the ServerScriptService.
- Place CommandFeedback ScreenGui in the StarterGui.
- Edit the Config ModuleScript.
- Make sure that files are placed correctly, like in the screenshot:
Usage
/ban <PlayerID> <Duration> <Reason>
PlayerID
- The ID of the player to be banned. [REQUIRED]
Duration
- The duration of the ban (e.g., 10s, 5m, 2h, 1d). Use -1 for permanent ban. [OPTIONAL]
Reason
- The reason for the ban. [OPTIONAL]
/unban <PlayerID>
PlayerID
- The ID of the player to be unbanned. [REQUIRED]
/checkhistory <PlayerID>
PlayerID
: The ID of the player whose ban history you want to check. [REQUIRED]
/getid <Username>
Username
- The username of the player whose ID you want to retrieve. [REQUIRED]
Example
To ban a player with ID 12345 for 10 minutes with the reason Spamming, an admin would type:
/ban 12345 10m Spamming
Log Example
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
Written by @MRBEGI (Github)
Contributor: @gavagogo223 (Github)
Special thanks to the Roblox Developer Community for the continuous support and resources.
Links
Get Module
Support Me
Github Repo
This is my first community resource post so please bear with me .