PlotSquared icon indicating copy to clipboard operation
PlotSquared copied to clipboard

Persistent meta is not reused

Open x1p opened this issue 4 years ago • 0 comments

Server Implementation

Purpur

Server Version

1.17.1

Describe the bug

Normally in ps 5.x you only had to set the flags chatspy and worldedit once. From that time forward you could join the server whenever you want and those flags would still be present.

Nowadays. every time you join, you have to enter plot toggle worldedit and plot toggle chatspy in order to make use of these flags.

I think this is managed by this setting:

  # Stores user metadata in a database
  persistent-meta: true

I checked my database. There are now 9 entries for my uuid. 7 Of them contain attrib_worldedit and 2 contains attrib_chatspy Setting the flags again adds more entries. And they work during that session. So the flags are properly set and saved to the database. PlotSquared just doesn't retrieves the saved flags to use them.

To Reproduce

  1. join
  2. execute plot toggle worledit
  3. see that it confirms that it's set
  4. check database
  5. rejoin and check again

Expected behaviour

Worldedit and chatspy to be persistent and set once, until you actively set it off (or if the permission to set this flag is taken away).

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/5774a12c3f7f41d7a988159a896993af

PlotSquared Version

PlotSquared version 6.1.2-Premium

Checklist

  • [X] I have included a Plot debugpaste.
  • [X] I am using the newest build from https://www.spigotmc.org/resources/77506/ and the issue still persists.

Anything else?

When this is solved, I (or PS) should de-double the database to contain only 1 flag per uuid to keep the database sane.

x1p avatar Oct 03 '21 14:10 x1p