Jump to content

Homes


Triu

Recommended Posts

I feel like every server needs a /home so heres the code (Ps make sure to make a new file called "homes.sk" you also need the skript pl obv)
in the files your files should look like this /plugins/Skript/scripts/homes.sk
code:

command /set home:
    trigger:
        set {spawn}  to location of block at location of player
        send "set spawn to: %{spawn}%" to player 

command /home:
    trigger:
        teleport player to {spawn}
        send "Welcome back home father, Nice to see you!" to player #you can change what this says or flat out remove it. 

Link to comment
Share on other sites

1 hour ago, Triu said:

command /set home:
    trigger:
        set {spawn}  to location of block at location of player
        send "set spawn to: %{spawn}%" to player 

command /home:
    trigger:
        teleport player to {spawn}
        send "Welcome back home father, Nice to see you!" to player

Use {spawn::%player's uuid%} because this would be setting the player's home everyone. Maybe I'm mistaken and this script is suppose to be a spawn script. Also why is the variable called {spawn}? But either then that nice script!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...