1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How check player region

Discussion in 'Skript' started by Linegrite, Oct 23, 2020.

Thread Status:
Not open for further replies.
  1. Linegrite

    Linegrite Member

    Joined:
    May 22, 2020
    Messages:
    17
    Likes Received:
    3
    Hi, I need help.
    I have a script that, when clicked on a portal, removes it.
    How can I make sure that the first check is whether this region is available to the player?
     
  2. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    If I understood correctly what you planned, you should check in which region the player is in the event.
    For example:

    Code (Text):
    1. on clicked on nether portal:
    2.     if "%region at player%" contains "regionname":
    3.         #TRUE
    4.     else:
    5.         #FALSE
     
  3. Linegrite

    Linegrite Member

    Joined:
    May 22, 2020
    Messages:
    17
    Likes Received:
    3
    Hi, I need that when a player clicks on the ender portal, the script checks if this player is in the member or in the owners of the region
     
  4. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    The code I have shared checks if the player is in a zone created with worldguard when clicking on the nether portal.
    I could not understand what you mean by the adjectives owner and member.
     
  5. Linegrite

    Linegrite Member

    Joined:
    May 22, 2020
    Messages:
    17
    Likes Received:
    3
    I want the script to check if the player has access to the region in which he clicked on the portal
     
  6. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    Ok, which plugin did you provide the authorization with ?
     
    #6 Yaşarhan, Oct 25, 2020
    Last edited: Oct 26, 2020
  7. Linegrite

    Linegrite Member

    Joined:
    May 22, 2020
    Messages:
    17
    Likes Received:
    3
    Someday I will start learning English...
    No. I need to check if the player is the owner of the WorldGuard region in which the block he pressed is located.
     
  8. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    Ups, sorry for the automatic translation.

    Sorry, I have no idea about the owner and member events for worldguard, but if you execute the command to create regions through a script command and assign a variable value while doing that, then you can use the data in this variable for the user who owns the region.

    This is a long way off, but I don't know if there is any other way you can check data inside worldguard.

    If you want to use this method, tell me about it and I will adapt it for you.
     
  9. Linegrite

    Linegrite Member

    Joined:
    May 22, 2020
    Messages:
    17
    Likes Received:
    3
    No, unfortunately this is not what I need. Thanks for trying to help :emoji_slight_smile:
     
    • Like Like x 1
  10. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    Sorry for not helping, good luck. :emoji_relaxed:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...