Protect your scripts' events
Most server-wrecking mods work by calling your own scripts’ events with values your script never meant to accept. Albion Anticheat can protect each resource’s events, with no change to the script’s own code.
The easy way
Section titled “The easy way”In the panel, open Setup > Protect scripts, tick the scripts you want and press Protect. The panel adds the lines for you and keeps the original as fxmanifest.lua.albion-backup. It takes effect at the next restart.
By hand
Section titled “By hand”Add this as the first server script and the first client script in the resource’s fxmanifest.lua. It works with escrowed resources too, because their manifest stays editable.
server_scripts { '@albion_anticheat/import.lua', -- the resource's own files}client_scripts { '@albion_anticheat/import.lua', -- the resource's own files}What it gives you
Section titled “What it gives you”- Limits on how often and how much a player can send to each event.
- Calls from outside your scripts are caught and recorded.
- Destructive protection for the database and server commands.
Protection starts in a safe mode that records and lets calls through, so nothing breaks while callers you didn’t know about are found. The panel’s Learned page shows which event and which script, so you can protect the caller too.