[HELP] Enter region skript

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

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

xiremen

Member
Sep 22, 2023
2
0
1
21
So I have this skript and works near-perfect but if I have the "region.enter" permission I can not enter that certain region. Please help :emoji_frowning:
code_language.skript:
on region enter:
 if player has permission "region.enter":
  if player's horizontal facing is east or north-east or north or south or south-east:
   push player west at speed 2
   message "<pink>Nu ai voie in aceasta regiune! Pentru a o debloca ai nevoie de 'Permisul pentru end'"
`
 
So I have this skript and works near-perfect but if I have the "region.enter" permission I can not enter that certain region. Please help :emoji_frowning:
code_language.skript:
on region enter:
 if player has permission "region.enter":
  if player's horizontal facing is east or north-east or north or south or south-east:
   push player west at speed 2
   message "<pink>Nu ai voie in aceasta regiune! Pentru a o debloca ai nevoie de 'Permisul pentru end'"
`
Code:
else:
  exit

:/

Also, a player can just look backwards and ignore this entirely...
 
  • Like
Reactions: xiremen
I will treat all cases, thanks
EDIT: And how can I optimize this faster than a long if ?