Plotsquared + Skript, how can I detect if a player is in a plot they own/are trusted in?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

SulphurMC

Member
Mar 22, 2022
2
0
1
I need to detect if a player inside of a plot they own/are trusted in and run some if statements based off of that.

for example:

I have a skript for upgrading someone's gens in my server, but they can currently upgrade gens outside of plots they own, they can also break them. Any way of fixing this would be appreciated.
 
Use PloSk add-on.

It would look something like this:


CSS:
set {_owner} to owners of plot with id plot at <your event> location
if {_owner} does not contain player:
    send "&cNot your Plot!" to player
 
Last edited: