Issue with predefined reasons when doing a lawsuit and using the Discord Webhook integration.
Allows the Admins to add pre-defined lawsuits in config.yml with how much the penalty is.
You can disable this in the config.yml if you'd like your players to have free will to sue for whatever they'd like.
JUSTICEFORALL PLUGIN UPDATE - VERSION 1.3
NEW FEATURE: Discord Webhook Integration
The JusticeForAll plugin now includes full Discord webhook support to keep your community informed in real-time about all court events!
WHAT'S NEW:
- Discord notifications for every court case milestone
- Automatic webhook posts when lawsuits are filed
- Real-time updates when judges accept or deny cases
- Trial start announcements with defendant and plaintiff names
- Verdict notifications including verdict type and fine amounts (if guilty)
- Contempt of court notifications when judges hold players in contempt
- Case dismissal alerts
SETUP:
1. Go to your Discord server settings
2. Open Integrations > Webhooks
3. Create a new webhook and copy the URL
4. Open plugins/JusticeForAll/config.yml
5. Find the discord section at the bottom
6. Set enabled: true
7. Paste your webhook URL
8. Restart server or run /court reload
CONFIGURATION:
discord:
enabled: true
webhook-url: "YOUR_WEBHOOK_URL_HERE"
Leave enabled set to false if you dont want Discord notifications.
WEBHOOK NOTIFICATIONS INCLUDE:
- New Lawsuit Filed (plaintiff, defendant, reason, damages)
- Lawsuit Accepted (case details, queued or starting status)
- Case Dismissed (case details, reason)
- Guilty Verdict (winner, defendant, fine amount)
- Not Guilty Verdict (accuser, acquitted player)
- Contempt of Court (player name)
- Trial Started (plaintiff vs defendant)
All notifications are sent asynchronously so they dont block the game server.
BACKWARDS COMPATIBLE:
Existing servers are not affected. Discord integration is disabled by default.
Enable it only if you have a Discord server webhook set up.
