Player Enters Lands Claim - Not working

  • 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!

Foary

Member
Dec 16, 2024
1
0
1
I'm trying to make a Skript where when a player enters a Lands claim, it toggles a visualization effect. Basically, the border of the claim has redstone particles. I am using this plugin. This exact code worked for the GriefPrevention plugin, but will not work with Lands.

Is there a better way to do this, or how do I fix this?

Code:
on region enter:
 wait 2 ticks
 if "%region at player%" contains "claim":
  make player execute command "/lands view here"

on region exit:
 wait 5 ticks
 if "%region at player%" contains "claim":
  make player execute command "/lands view disable"