# ───────────────────────────────────────────────
# Author: Miko – SkriptRush
# Version: 1.0
# Notes: Do not claim as your own or redistribute without permission.
# ───────────────────────────────────────────────
options:
home: "&7[&eHome&7]"
command /home <text> [<text>]:
aliases: /h
trigger:
if arg-2 is set:
if arg-1 is "create" or "set":
if {home::%player%::%arg-2%} is not set:
set {home::%player%::%arg-2%} to player's position
send "%{@home}% &fYou have successfully &acreated &fhome &e%arg-2% &fto your current location!"
else:
send "%{@home}% &fIt appears that you have already got a home named &e%arg-2%&f!"
else if arg-1 is "delete":
if {home::%player%::%arg-2%} is set:
delete {home::%player%::%arg-2%}
send "%{@home}% &fYou have successfully &cdeleted &fhome &e%arg-2% &fto your current location!"
else:
send "%{@home}% &fIt appears that you do not have a home named &e%arg-2%&f!"
else:
send "%{@home}% &fI'm sorry. It appears that option does not exist!"
else:
if {home::%player%::%arg-1%} is set:
send "%{@home}% &fTeleporting you to home &e%arg-1% &fin 3 seconds!"
wait 3 seconds
teleport player to {home::%player%::%arg-1%}
else if arg-1 is "list":
if {homes::%player%::*} is set:
send "&eAll your homes:"
loop {homes::%player%::*}:
send "&f%loop-value%"
else:
send "%{@home}% &fIt appears that you do not have any homes!"
else:
send "%{@home}% &fIt appears that you do not have a home named &e%arg-2%&f!"