PrettyPacketAC supports detailed logging through Discord webhooks, so you and your staff can stay in the loop 24/7 — whether it's bans, warnings, screenshots, or kicks! 🔒💻
🗂 File Location
All webhook settings are located in:
config/logging.lua
Inside, you’ll see a section like this:
PrettyPacketACLogs = {}-- User to Upload ImagesPrettyPacketACLogs.DiscordMediaHook ="WEBHOOK HERE"PrettyPacketACLogs.BanLogs ="WEBHOOK HERE"PrettyPacketACLogs.UnbanLogs ="WEBHOOK HERE"PrettyPacketACLogs.WarnLogs ="WEBHOOK HERE"PrettyPacketACLogs.ScreenShotLogs ="WEBHOOK HERE"PrettyPacketACLogs.KickLogs ="WEBHOOK HERE"-- Cool Down On Warning Logs to avoid Identical SpamPrettyPacketACLogs.WarnCooldown =10-- Recommended 10 secondsPrettyPacketACLogs.LogColors = { Ban =16711680, -- ❤️ Red Unban =65280, -- 💚 Green Warn =16776960, -- 💛 Yellow Screenshot =3447003, -- 💙 Blue Kick =15105570, -- 🧡 Orange}
Just replace each "WEBHOOK HERE" with the corresponding Discord webhook URL for that type of log ✨
📋 What Each Webhook Does
Webhook Field
What It Logs
DiscordMediaHook
Uploads screenshots & media attachments 📸
BanLogs
Sends detailed ban logs 🔨
UnbanLogs
Logs when a player is unbanned 💼
WarnLogs
Shows player warnings ⚠️
ScreenShotLogs
Screenshot detection logs 🖼️
KickLogs
Player kicks 🚪
⏱️ Warn Cooldown
To prevent spammy logs, you can adjust:
This means warnings for the same thing won’t spam Discord if triggered repeatedly — 10 seconds is a safe sweet spot 💁♀️
🎨 Log Colors
You can customize the color bars on your Discord embeds using this section:
Feel free to swap the numbers to match your server’s vibe 🎨✨
💌 How to Make a Discord Webhook
Open your Discord server and go to the channel you want to use.
Click the ⚙️ Edit Channel > Integrations > Webhooks.
Click New Webhook and give it a cute name (like Pretty Logs 💕)
Copy the Webhook URL and paste it into your config.
Repeat for each log type if you want them in separate channels!
🧁 You can use the same webhook for multiple types — totally up to you!
💡 Pro Tips
🔐 Set up a private staff-only channel for logs to keep it secure.
✨ Keep your webhook URLs secret — don’t post them publicly