PlotSquared
PlotSquared copied to clipboard
Adding & Trusting inserts data in the wrong table
-
/plot addinserts into plot_trusted -
/plot trustinserts into plot_helpers
Currently this doesn't cause issues because the relevant calls such as Plot#isAdded() use the inverted methods internally which return the value expected. This may cause issues/confusion if you access the tables directly. Per-design, plot add inserts into plot_helpers, because added members are internally referenced as helpers and plot trust goes into plot_trusted. Addressing this issue must be done with caution to not screw up data down the line.
I actually just noticed this bug too and was about to open an issue about it. I noticed it due to the get here returning the wrong table names.