Permissions are part of RocketMod. To run RocketMod on your server, you first need to enable it. To do this, open the Files tab for your game server, go to the Modules folder, and create a folder called Rocket.Unturned using New Folder. The folder can be left empty; your server will set up RocketMod in it the next time it starts.
You then need to start the server once so it can generate the required configuration files.
Once the server is online, you can stop it again.
All the important files needed by us or the server will have been created by then.
Permissions are stored in the Permissions.config.xml file.
You can easily view and edit this file through our interface.
To do this, open the Files tab for your game server and go to the Servers/Server/Rocket folder. The Permissions.config.xml file is located there. Open it to edit it.
At first glance, the config may seem complicated and confusing.
We’ll help you make sense of it!
The file is divided into different groups.
All groups are listed in the <Groups> section.
It starts with <Groups> and ends with </Groups>:
<Groups>
...
</Groups>
You’ll find the individual groups between these tags.
Each group is in its own block, which starts with <Group> and ends with </Group>. For example, this entire block represents the default group:
<Group>
<Id>default</Id>
<DisplayName>Guest</DisplayName>
<Prefix />
<Suffix />
<Color>white</Color>
<Members />
<Permissions>
<Permission Cooldown="0">p</Permission>
<Permission Cooldown="0">compass</Permission>
<Permission Cooldown="0">rocket</Permission>
</Permissions>
<Priority>100</Priority>
</Group>
This block contains all the parameters assigned to the group: Id is the group's internal name, DisplayName is its name in the game, Members lists the players in the group, and Permissions lists their permissions. With <ParentGroup>, a group can also inherit all the permissions of another group. Players who aren't assigned to any group are placed in the group specified by <DefaultGroup> near the top of the file (default by default).
The group also contains a <Permissions> section.
Each <Permission> line in it represents a permission, usually the name of a command.
You can adjust the group's permissions here.
You can also use Cooldown to set the wait time in seconds before a command can be used again.
For example, let's say we want to give the group permission to ban players.
We would add the following:
<Permission Cooldown="0">ban</Permission>
This means the group can now ban people in-game. Since the cooldown is set to 0 seconds, they can do so without waiting.
If we also want to give the group permission to heal themselves, it looks like this:
<Permission Cooldown="3600">heal</Permission>
The command can then only be used every 3600 seconds.
The process is the same for other permissions.
However, some permissions require the appropriate plugins.
The groups have now been created with the desired permissions.
Next, you need to assign users to the group.
You’ll need each user's Steam64ID.
You can find it by clicking the following link:
https://steamid.io/
Once you have the Steam64ID, you can add it to the config.
Add it in the group's <Members> section, using one <Member> line per user.
If the section currently contains <Members /> (an empty group), replace that line with a block containing <Members> and </Members>.
For example:
<Members>
<Member>76561198000000000</Member>
<Member>76561198000000001</Member>
</Members>
Add a new line for each user you want to assign to the group.
Once you've added all the users you want, save the file by clicking Save.
Then restart the server, and you'll be assigned to the group in-game!
