Web editor cannot apply subranks
taterhatr opened this issue ยท 1 comments
When I try to apply a subrank on a player then export the config to my server, it does not apply
To Reproduce
Steps to reproduce the behavior:
- /pr webeditor start
- Create a rank
- Apply the subrank on a player
- Export and /pr reload all
Expected behavior
The rank will not apply
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
If applicable, post log files from your server
Desktop (please complete the following information):
- OS: Windows 10
- Server type: Paper
- Minecraft Version: 1.16.3
- PowerRanks version: Latest
Thanks for reporting this issue.
I see what's happening here.
I've create a test rank in the web editor and applied that as a sub-rank to myself, then exported it to the server. After checking I can see the sub-rank being there. But a reload or restart of the server removes it.
subranks={TestRank={use_prefix=true, use_suffix=true, use_permissions=true, worlds=[All]}}
When PowerRanks shuts down or restarts it writes the cached files back to the file-system, overwriting the current Players.yml and thus overwrites the sub-ranks that have been configured from the web editor.
I've updated the PowerRanksWebEditor add-on and that is now available for download on https://powerrankseditor.svenar.nl
This new version of the add-n (v1.2) fixes this issue.