This plugin alerts players and their teammates when someone enters the wrong code on their code locks, keeping them informed about potential break-in attempts.
Permissions
failedcodealert.use
- Without this permission, players cannot enable or disable notifications for their own code locks.failedcodealert.ignore
- Players with this permission can enter any incorrect code without notifying the owner or team.
Commands
/codealert
- Toggles code lock intrusion notifications on or off for the player. When enabled, the player will receive alerts when someone fails to enter the correct code on their locks.
Configuration
JSON:
{
"Version": "1.1.0",
"Discord Webhook Url (Leave blank to disable)": ""
}
Discord Webhook Url
- A url for sending failed code lock attempt alerts to Discord. If left blank, Discord alerts are disabled.
Stored Data
JSON:
{
"Intrusion Alerts": {
"76561199104881804": true,
"76561199963473143": false,
"76561198813750329": true
}
}
Localization
JSON:
{
"FailedAttempt": "Someone is trying to access your code lock at {1} but they failed! Intruder: {0}",
"AlertsEnabled": "Code lock intrusion alerts enabled!",
"AlertsDisabled": "Code lock intrusion alerts disabled!",
"NoPermission": "You do not have permission to use this command.",
"DiscordAlertMessage": "Intrusion alert: {0} ({1}) attempted to access code lock owned by {2} ({3}) at {4}"
}