The idea to make this script as dynamic as I possibly can came from my experience in taking the leadership of the LSPD and having to adjust the hierarchy almost constantly: removing ranks, adding ranks, changing their names...
This inspired me to develop this and after five days of struggling, +30k log lines, 12 pages with debug and ideas to fix the bugs, I finally succeeded!
The script works for leaders and those with the rights to adjust ranks.
> use /feditranks or /fer:
> Choose an action. The screen underneath will showcase changing the rank names first. Choosing this option will show a different dialog with all the ranks with their names and their ID:
> Click the rank of which you want to change the name, the screen underneath changes the name of Rank ID 2:
> The dialog which listed the ranks looks like this now:
> Choose a different action. The screen below will showcase changing the amount of ranks you want to use:
> By default, new ranks have the name: 'Unassigned'. You will have to change their names after adding them in:
Take the following notes in consideration:-
Let's say that you are currently using 7 ranks but you only want 4. You can do so by following the option 'Adjust amount of ranks'. Enter 4 and you will now have 4 ranks. The script handles players who have a deleted rank. The script does that by demoting everyone to the rank 'input - 1'. So if you enter 4, all players who had rank 4, 5, 6 or 7 will now have rank 3.-
The leader's rank is automatically set to the maximum. So if you take the example above and change the used ranks from 7 to 4, the leader's rank will then be 4.-
You cannot have less than 2 ranks or more than 20 ranks.-
Rank names have a maximum length of 32 characters and a minimum length of 3 characters.