RedProtect Anti-Grief

RedProtect Anti-Grief

73.3k Downloads

[BUG] Custom admin flags being erased after reload

WGOS opened this issue ยท 1 comments

commented

Describe the bug
Seems like if I add an admin flag through API, it will be erased from data after executing /rp reload, /rp reload-config or server restart

To Reproduce
Steps to reproduce the behavior:

  1. Add custom flag in plugin code:
    RedProtect.get().getAPI().addAdminFlag("flag-name-goes-here");
  2. Set any flag value in game
  3. Execute any reload command or restart server

Expected behavior
Admin flags should be loaded from config (data) as well as player flags.

Server and plugins versions (please complete the following information):

  • Server: Sponge 1.12.2
  • Plugin Version: RedProtect-7.7.2-b384-Universal.jar
  • Java Version: 1.8.0_261
commented

It is also seems to be problem of FlatFile database. Well, as long as I didn't test it on SQL.
Here we can see that for loop works only for values that are exist in AdminFlags list and on server start custom flags are not in it ofcourse