PlotSquared icon indicating copy to clipboard operation
PlotSquared copied to clipboard

Auto Trust Plots

Open blue-pinapple opened this issue 7 months ago • 5 comments

What feature do you want to see added?

I have a plot, I would like anyone with a spesfic perm or luckperm group to be automaticly trusted spesficaly in that plot.

Are there any alternatives?

I've tried creating a custom command that runs /plot plots251;1;-1 trust {player}, but that still can't be run by the console. Allowing that to be run by the console would be enough for me.

Anything else?

No response

blue-pinapple avatar Jun 01 '25 23:06 blue-pinapple

Would you like to describe the usage of this feature so that we can better imagine how it could be implemented?

Currently, the Trust only works via a player name. Or you have admin bypass permissions to build in all plots. That's the basic concept of the plot membership tier system. I don't think anyone will completely revise it any time soon.

RedstoneFuture avatar Jun 17 '25 10:06 RedstoneFuture

We have a twitch/Patron system, they have been given a luckperm group. We would like them to be able to build/trusted in our members only plot.

blue-pinapple avatar Jun 18 '25 22:06 blue-pinapple

I don't think such permission would be usefull, but if the dev team wants to implement it i think the best way would be a permission plots.autotrust.<areaname>.<plotcoordinates> so you get build permission there automatically. Tho should it act as "Trusted players" or a different thing, is a whole new question. Because if you then remove that permission, i guess you should not have the build permissions anymore.

@blue-pinapple For your specific case, you may obtain the same result using Luckperm ExtraContexts plugin. (It says last build was +1y ago, but i am using it in 1.21.1 and 1.21.6 on Paper and its working fine)

  1. Install plugin
  2. Enable the Worldguard region extension (i assume you already have worldGuard)
  3. Restart the server to make luckperms recognize the new contexts and show them in the editor.
  4. Create a WorldGuard region on all the plots you need, and set passthrough flag to none so it doesn't interfer with plots.
  5. Create a Luckperm role with the admin build bypass permission, and in context add the WorlGuard region.

And now everytime they are within the defined regions, they will have the bypass, acting like they are trusted. Although, keep in mind that this isn't a real trust, but an admin bypass for specific zones, you might encounter side effects due to that, but that should solve your issue for now.

ImTheSpyke avatar Jun 29 '25 15:06 ImTheSpyke

Sadly, you cannot use worldGuard with FAWE (Which we reliy on). We really don't want to give people admin bypasses in that way as tools like FAWE, FAVE and Axiom will allow the players to modify any other region while standing in the member plot.

Our best Solution so far is:

Player triggers custom command Check permission group Teleport the player to the Plot Gives them plot admin to auto expire in 1s /plot trust world;x;y remove plot admin

But we still consider that too risky for our server, but may use it if necessary.

blue-pinapple avatar Jun 30 '25 02:06 blue-pinapple

That's weird, i am actually using FAWE too and its working just fine with WorldGuard. Also solution seems fair, and i think you could be able to do a such simple custom command for your members using Skript. And for FAWE and Axiom outside the plots, i actually set up exactly that on my server few days ago to restrict edition of block within the only region player are allowed to modify, both for FAWE and Axiom. Tho if you need any more information or help, you can directly DM me on my Discord to continue this conversation instead of replying here, as this issue thread isn't the place for that ^^ Discord: <removed after 1 week>

ImTheSpyke avatar Jun 30 '25 02:06 ImTheSpyke