mirror of
https://github.com/SWG-Source/swg-main.wiki.git
synced 2026-01-16 20:04:18 -05:00
2.0 KiB
2.0 KiB
If you are going to have other players on your server you may not want them to have access to the god mode / admin commands. This guide will show you how to restrict those functions to accounts you have to explicitly authorise.
To keep the variables limited I'm going to assume that you are starting with a freshly extracted and configured virtual machine.
- Log onto your server and create two accounts, for this guide I'm using "swg" and "swg2".
- Add characters to both accounts.
- For each character run /setgod and then /script attach test.qatool
- Test each character by entering god mode and running /setspeed 5 and then see if they can run very fast
- Within the VM create a new admin table, copy an existing one from here: /home/swg/swg-main/dsrc/sku.0/sys.server/compiled/game/datatables/admin/
- I named my new file swgsource_admin.tab
- Next you should clear out any entries in there already (maybe leave 1 as an example to follow)
- Add a new line for the "swg2" account (remember that account names are case sensitive), save changes
- Edit this file: /home.swg/swg-main/exe/linux/default.cfg
- Comment out the "adminGodToAll=1" entry by placing a # symbol at the front of it (#adminGodToAll=1), save changes
- Edit this file: /home.swg/swg-main/exe/linux/local_options.cfg
- Use Find & Replace - find "stella_admin" and replace it with "swgsource_admin" , should be 3 entries.
- Ensure there are no # symbols in front of any of those three entries.
- In the [GameServer} section of the file comment out the "adminGodToAll=true" and "admintGodToAllGodLevel=50" entries by placing a # symbol in front of each of them, save changes.
- Open up a terminal window and run "cd swg-main"
- Now run "ant compile_tab" (this will compile the new admin file for you)
- Boot up the server
- Log into the swg account and verify that the character there cannot enter god mode (/setgod)
- Log into the swg2 account and verify that the character there can enter god mode and alter speed (/setspeed 5)