random teleport on death

  • 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 skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

3meraldK

New Member
Dec 27, 2019
6
1
3
24
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:
on death:
    if player has a town:
        send "you are in town"
    else:
        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/
 
Status
Not open for further replies.