[Text Tutorial][Server] Adding new ranks annd changing permissions
1. Open Player.cs.
2. On line 239 (unchanged file) is the rank names list.
3. Add or change ranks, case 1: means the rank number (also known as rank permission level) and [Tester] means the prefix.
4. Now go to WorldCommands.cs
5. On line 149 (unchanged file) is the piece of code that makes sure you can /tell people with prefixes.
6. And finally go to AdminCommands.cs to change the permission levels.
7. Each command has a permission level, change them to your likings.
You don't need to give credits for this!
Code:
wServer.realm.entities.player
2. On line 239 (unchanged file) is the rank names list.
Code:
case 0:
Name = psr.Account.Name; break;
case 1:
Name = "[Tester] " + psr.Account.Name; break;
#NOTE: This is not the original content.
3. Add or change ranks, case 1: means the rank number (also known as rank permission level) and [Tester] means the prefix.
Code:
case 2:
Name = "[MPGH Leecher] " + psr.Account.Name; break;
4. Now go to WorldCommands.cs
Code:
wServer.realm.commands
5. On line 149 (unchanged file) is the piece of code that makes sure you can /tell people with prefixes.
Code:
string[] tags = {"", "[Tester]", "[MPGH Leecher]"}
#NOTE: Make sure you add all the prefixes to this list.
6. And finally go to AdminCommands.cs to change the permission levels.
Code:
wServer.realm.commands
7. Each command has a permission level, change them to your likings.
Code:
public int RequiredRank { get { return 3; } }
{ return 3; } This means that the lowest ranks able to use this command is rank 3.
#NOTE: There are also some commands with permissions in other files, check these: AdminCommands.cs, GuildCommands.cs and WorldCommand.cs
You don't need to give credits for this!
