#home skript

1 messages · Page 1 of 1 (latest)

copper comet
#

shi not workin

#
    permission: homes.home
    trigger:
        set {_} to player's location
        send title "&bTeleporting Home &c DONT MOVE" with subtitle "&c1" to player
        wait 1 seconds
        send title "&bTeleporting Home &c DONT MOVE" with subtitle "&c2" to player
        wait 1 seconds
        send title "&bTeleporting Home &c DONT MOVE" with subtitle "&c3" to player
        wait 1 seconds
        send title "&bTeleporting Home &c DONT MOVE" with subtitle "&c4" to player
        wait 1 seconds
        send title "&bTeleporting Home &c DONT MOVE" with subtitle "&c5" to player
        if player's location is not {_}:
        send "Teleport canceled Reason: You moved."
        stop
        if arg is set:
            if {homes::%player's uuid%::%arg%} is set:
                teleport player to {homes::%player's uuid%::%arg%}
                send "&aTeleported to &2&o%arg%"
            else:
                send "&cThis home doesn't exist!"
        else:
            if {homes::%player's uuid%::home} is set:
                teleport player to {homes::%player's uuid%::home}
                send "&aTeleported to &2&ohome"
            else:
                send "&cYou do not have a default home set"```
#

at the end of the count down no matter what it says that you moved

#

i tried other things and it didnt work

swift wing
#

Because you didnt indent properly

tawny vigilBOT
#

In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.

A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:

With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:

https://i.imgur.com/PbfZ12M.png

copper comet
frank salmon
#

use spaces if u want

swift wing
#

it doesnt matter which you use