COMPATIBILITY
✔ Single player · ? Joining a friend
✔ Dedicated server · ✔ Controller
Server-side only: install on the dedicated server or the host's PC. Players install nothing. ? = not tested yet.
Pick who can build, use the chests and farm on your server.
Server Lockdown runs on a dedicated server or on the PC that hosts a co-op world. Players who are not on your list can still walk, fight, gather and chat, but the server refuses their building, their chest moves and their farming, and tells them why. Players install nothing.
In the base game, anyone who gets into your world can build, take from your chests and work your fields. The player list lets you kick, ban or make someone an admin, and that's it. Server Lockdown adds an allow list: the players on it play as normal, everyone else is a guest who can look around but can't change your base.
What it does
- Building: guests can't place building pieces, dismantle or repair them, or add materials to finish a piece. They also can't rename things or turn on building damage.
- Chests: guests can't move items in or out of a chest. Take, Take All, split, fill and putting items in are all refused, and so is the swap trick between two full chests.
- Items in your chests: guests can't craft with materials from your chests, or drop, destroy, remove or use items straight out of them. They can't make your chests private or unlink them.
- Farming: guests can't till, plant, harvest, water, fertilize, cure or rapid grow.
- What guests still can do: loot their own gravestone, and repair their gear at a station with materials from their own bag. That repair just works, with no notice; your chests are left out of it.
- Who is always allowed: the host of a co-op world. The server owner and admins too, while AllowAdmins is on (it is by default).
- A notice for the guest: a refused guest sees the game's own banner under the compass: "This world is locked: ask the owner to add you." At most once every 12 seconds per guest. You can change the words or turn it off.
- No kicks: a refused action just doesn't happen. The guest stays in the world and can keep playing.
- Seeds come back: the game takes the seed a moment after a plant is refused, so the mod gives it back to the guest's bag right after.
- Live config: the server reads
config.txt again every 10 seconds. Add someone, save, and it counts within seconds. No restart. - A quiet log: the server log says who joined as allowed or guest, and notes refusals, one line per kind of action per player per minute.
Who is allowed
Put players on the AllowList line in config.txt, separated by commas. Two kinds of entry:
- id:<account id>: one account, whatever its character is called. This is the sure way.
- A character name: the first account that joins with that name gets it and keeps it. Another account that later uses the same name stays a guest; the log calls it a copycat. Renaming a character doesn't change who someone is. Capital letters don't matter.
Every join shows up in the server log like Ann (id 0a1b2c..., mask 14): guest (not on the AllowList), so you can copy the id from there. Names can be copied: if a stranger joins first with your friend's name, they get it. Use id: for certainty.
Names that have been handed out are kept in pins.txt next to config.txt. To give a name to a different account, delete its line in pins.txt (or the whole file). An empty AllowList means only the host, the owner and admins. A * lets everyone in, so nothing is refused. You can write more than one AllowList line; the entries add up.
What a guest sees
The guest can open a chest and look inside, but the items stay where they are, and a banner under the compass says "This world is locked: ask the owner to add you." for a few seconds. A piece they try to place doesn't go up, and a plot they try to till or plant stays as it was. The banner is the game's own, sent by the server, so the guest needs nothing installed to see it.
Settings
On a dedicated server there is no menu: edit config.txt in the server's GuestLockdown folder. It is read again every 10 seconds, so no restart is needed. If you host a co-op world, the switches are also in Mod Menu (Esc > MODS > Server Lockdown); the lists and the notice text are only in config.txt. On a host, the Mod Menu switches win over the same lines in the file. If you join someone else's world, the page still shows, but it changes nothing there.
- Enabled (Server Lockdown on): on by default. Off = nothing is refused, as if the mod were not installed.
- AllowList: empty by default. Account ids (id:...) and character names, separated by commas. A note after a space and # is ignored. Config.txt only.
- AllowAdmins (Owner and admins always allowed): on by default. The server owner and admins are allowed even when they are not on the list.
- LockBuild (Building): on by default. Placing pieces; repairing, adding materials to or dismantling a piece or a station; editing signs, renaming things, turning on building damage.
- LockChests (Chests and storage): on by default. Moving items in or out of anything that is not the guest's own inventory; dropping, destroying, using or selling items out of it; crafting or upgrading with items from it; making a chest private or unlinking it.
- LockFarm (Farming): on by default. Planting, tilling, harvesting, watering, fertilizing, curing, rapid growing and growing weeds.
- Skip: empty by default. Lets single actions through while the rest stays locked. Names:
build piece sign rename damage move split moveall fill private link craft repairitem upgrade destroy remove drop use sell plant till harvest water fertilize cure grow weeds. Example: Skip = harvest, water lets guests help with the harvest and the watering. Config.txt only. - Notice (Tell refused guests): on by default. Shows a refused guest a short line on screen, at most once every 12 seconds.
- NoticeText: "This world is locked: ask the owner to add you." by default. The words of that line. Config.txt only.
- Verbose (Detailed log): off by default. Extra detail on each refused line in UE4SS.log, for troubleshooting.
Install
- Install UE4SS for RuneScape: Dragonwilds on Nexus Mods (required) on the machine that runs the world: the dedicated server, or your own PC if you host.
- Extract the zip into
RSDragonwilds\Binaries\Win64\ue4ss\Mods\ there, so you get ...\ue4ss\Mods\GuestLockdown\Scripts\main.lua. - Open
GuestLockdown\config.txt and fill in the AllowList. - Optional, for a host: Mod Menu for the switches in game.
Note that the folder and the tag in the log are named GuestLockdown. Players who join install nothing. If a player has it installed anyway, their copy just notes "you joined someone else's world" in their log and does nothing. No RuneSchema needed.
On Game Pass: use the BE version of UE4SS with the SCO signature, the normal build does not load there. Game Pass also installs the game under Binaries\WinGDK\ instead of Binaries\Win64\, so the GuestLockdown folder goes in RSDragonwilds\Binaries\WinGDK\ue4ss\Mods\. I haven't tested Game Pass.
Uninstall
Close the game or stop the server and delete the GuestLockdown folder; pins.txt goes with it. The mod adds no items or build pieces and writes nothing into your world, so everyone can build, use chests and farm again as soon as it's gone.
How to check it works
Look in the server's (or the host's) UE4SS.log. On start you should see [GuestLockdown] dedicated server: on; locks: build chests farm; ... (or you are the host: on ...) and listening to 28 request kinds. When a player joins: Name (id ..., mask N): allowed (id on the AllowList), ... allowed (name on the AllowList, now pinned to this account) or ... guest (not on the AllowList) .... A refusal looks like refused move by Name [...]; repeats are counted on the next line as "(+3 more since the last line)".
Good to know
- Not locked, on purpose: switching a station's fuel on or off, and collecting from a station's output. The game uses the same request to open doors, beds and chests, so locking it would also lock guests out of ordinary play.
- Game updates: if an update changes something the mod relies on, it doesn't fail quietly. The start line says which protection is open, like "NOT covered: craft is OPEN", instead of "listening to 28 request kinds". If the notice stops working, the log says "guest notice is OFF" and the refusals still work.
- Co-op hosts and ids: if a player's account id can't be read (this can happen on a co-op host), they are judged by character name only, nothing is pinned, and the log says "id unreadable for Name: trusting the name". On a co-op host, only let in people you know. On my solo test the host's own id could not be read; the host is always allowed anyway.
- Chests built by guests: the game doesn't record who built a chest, so a guest can't make any chest private or unlink it, even one they built.
- Station storage: counts as "not the guest's own inventory", so it is locked with the chests. I tested chests.
- Signs, selling, upgrading, weeds: these are in the rules too. I found no sign piece in the game to test the sign rule, and I couldn't see an effect to check for selling, upgrading and growing weeds; the refusal itself ran without a kick or a crash.
- Your save: nothing is written into your world. A refused action simply never reaches it.
Tested on RuneScape: Dragonwilds (Steam build 26658295) with Mod Menu 2.0.3, on a local dedicated server with one test player joined, and solo as the host. The final build was checked on the server with UE4SS 4.0.0: ids, name pins, renames and copycats, all the chest, item and building protections, the gravestone, own-bag repairs, the notice, planting with the seed given back, the allow list, admins, the off switch and live config changes, plus a 30-minute and a 20-minute run with the settings changed every 2 minutes, with no problems. The other farming actions, Take All, fill, putting items in, Skip, the Chests switch and the chest window with real keys and mouse were checked on an earlier build with the server on UE4SS 3.0.1. The Mod Menu page, including Tell refused guests, was driven with a virtual Xbox pad on the final release zip. The PC ran UE4SS 4.0.0 throughout. Not tested yet: a co-op world hosted on a PC with a second real player (including whether account ids can be read there), Game Pass, and the sign rule.
Links