AntiAbuse - Advanced Command & Message Logger 1.21.x only
Take full control of your server's activity with
AntiAbuse, a comprehensive logging solution designed for modern Paper/Folia servers. Monitor player actions, log sensitive commands and private messages, and receive instant alerts on Discord to ensure your server stays safe and secure. With deep customization options, you can tailor every aspect of the logging to fit your server's unique needs.
Key Features
- Advanced Command Logging: Log all commands server-wide or create a specific whitelist of commands to monitor.
- Private Message Monitoring: Log private messages (/msg, /w, /r, etc.) sent by specific staff groups, including the sender's rank.
- Full Discord Integration: All logs are instantly sent to your Discord server via webhooks, with customizable embeds for different log types.
- Critical Command Alerts: Ping a specific role on Discord whenever a critical command (like /op or /ban) is used, ensuring immediate attention from your staff.
- In-Game Verbose Mode: Staff with permission can toggle a real-time feed of logged actions directly in the in-game chat.
- Fully Configurable: Almost everything is customizable across three clean config files (config.yml, discord.yml, messages.yml). Change messages, colors, embed formats, and more.
- LuckPerms Integration: Leverage your existing LuckPerms ranks to target specific groups for private message logging.
- Tab Completion: All plugin subcommands are easily accessible with tab completion for a smooth user experience.
Requirements
- Server: Paper / Folia (or forks) for Minecraft 1.21.x
- Dependency: LuckPerms (The plugin will not start without it)
Commands & Permissions
Commands
Command
Alias
Permission
Description
/antiabuse reload
/ab reload
antiabuse.reload
Reloads all configuration files.
/antiabuse verbose
/ab verbose
antiabuse.verbose
Toggles the in-game verbose logging mode. (see group msgs and commands)
Permissions
Permission
Description
Default
antiabuse.reload
Allows a player to use the /ab reload command.
OP
antiabuse.verbose
Allows a player to use the /ab verbose command.
OP
Installation
- Ensure you have LuckPerms installed on your server.
- Download the latest version of AntiAbuse.
- Place the downloaded .jar file into your server's plugins/ folder.
- Restart your server.
- Three configuration files (config.yml, discord.yml, messages.yml) will be created in the plugins/Antiabuse/ folder.
- Open the files and configure them to your liking, especially the webhook-url in discord.yml.
- Use /ab reload or restart the server to apply the changes.
Configuration
The plugin uses three separate files for easy and clean configuration.
Code (Text):
# Main logic configuration for AntiAbuse
command-logging:
# Set to 'false' to completely disable logging of any commands.
enabled: true
whitelist:
# If this is 'true', only commands from the list below will be logged.
# If this is 'false' (and command-logging.enabled is true), ALL commands will be logged.
enabled: true
commands:
- "gamemode"
- "op"
- "deop"
- "kick"
- "ban"
- "pardon"
- "msg"
- "w"
- "tell"
- "r"
- "reply"
private-message-logging:
# Add groups to the list to log their msgs if off remove all
log-for-groups:
- "admin"
- "moderator"
- "owner"
# Commands that are considered private messages. Must also be in the whitelist. keep it as it is if you don't use any external msg plugin.
message-commands:
- "msg"
- "w"
- "tell"
- "whisper"
reply-commands:
- "r"
- "reply"
discord.yml:
Code (Text):
# All Discord-related settings
webhook-url: "YOUR_WEBHOOK"
# Format for generic commands
generic-command:
title: "Command Logged"
color: 15158332 # Red
player-field-name: "Player"
command-field-name: "Command"
footer: "AntiAbuse Command Logger made by vypnito"
# Format for private messages
private-message:
title: "Private Message Logged"
color: 3447003 # Blue
sender-field-name: "Sender"
sender-rank-field-name: "Rank"
recipient-field-name: "Recipient"
message-field-name: "Message"
footer: "AntiAbuse PM Logger made by vypnito"
messages.yml:
Code (Text):
# All in-game messages for AntiAbuse. Supports '&' color codes.
no-permission: "&cYou do not have permission for this command."
plugin-reloaded: "&aAntiAbuse configuration has been reloaded."
usage-help: "&cUsage: /%label% <reload|verbose>"
unknown-subcommand: "&cUnknown subcommand. Usage: /%label% <reload|verbose>"
player-only-command: "&cThis command can only be used by a player."
verbose:
enabled: "&eVerbose mode has been &aenabled&e."
disabled: "&eVerbose mode has been &cdisabled&e."
command-format: "&8[&cAB Command&8] &7%player% &7used: &e/%command%"
pm-format: "&8[&9AB Private&8] &7[%rank%] &b%sender% &7-> &b%recipient%&7: &f%message%"
Support
for issues use github or contact me on discord Jan1k_val.