Skip to content

Update Rights.java to properly read hidden state from file

Daleth Darko requested to merge (removed):Dalethium-master-patch-19575 into master

What has been done in this MR?

When the manual attribute of visible_rank is added to player data, it is not read properly and leads to broken chat as it tries to cast to the Rights class if you use an int, and there is no enum support in the player attributes class.

What should testers check?

  • Player should have their admin status hidden from chat if the json value of {"type":"int","value":"0","key":"visible_rank"} is added to their attributes, 1 should show them as a pmod, 2 should show them as an admin, outside of these values should de
  • [*] I have tested these changes thoroughly.

  • [N/A] I used the relevant Thanos/Zaros tool for any JSON edits where possible, and have attached screenshots of any changes.

Merge request reports