prohibit nonstop entering and exiting a region

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

Status
Not open for further replies.

xRiuse

Member
Jun 25, 2021
1
0
1
The region named "x" can be entered once, I want it to be entered maximum 6 times.
I want it to write something like "you can repeat in x seconds" when you enter after 6 .
 
I'm not sure if this event can be canceled
Code:
on region enter:
  if "%event-region%" contains "x":
    if {regionnum::%player's uuid%} is less than 7:
      add 1 to {regionnum::%player's uuid%}
    else:
      cancel event
      send "nah"
 
Status
Not open for further replies.