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.

random teleport on death

Discussion in 'Skript' started by 3meraldK, Dec 28, 2019.

Thread Status:
Not open for further replies.
  1. 3meraldK

    3meraldK New Member

    Joined:
    Dec 27, 2019
    Messages:
    6
    Likes Received:
    1
    I've a problem with random teleporting when player has no town (towny).

    How to detect if a player has a town or he doesn't?
    I've got random teleporting function so I need the only detection if player is townless.

    for example:
    Code (Text):
    1. on death:
    2.     if player has a town:
    3.         send "you are in town"
    4.     else:
    5.         send "you are townless"
    Thanks :emoji_slight_smile:
    Skript-mirror is required, also you need to extract Towny.jar plugin into skript-mirror folder.
    Towny Github: https://github.com/TownyAdvanced/Towny#towny-advanced---developed-by-llmdltownyapi/
     
  2. IDuckz_

    IDuckz_ Active Member

    Joined:
    Jul 25, 2019
    Messages:
    106
    Likes Received:
    2
    Try using variables.
     
  3. 3meraldK

    3meraldK New Member

    Joined:
    Dec 27, 2019
    Messages:
    6
    Likes Received:
    1
Thread Status:
Not open for further replies.

Share This Page

Loading...