Commit e2d4b807 authored by Tommy Ang's avatar Tommy Ang 🤣

Fix /back not working with /ptown home

parent ab5f77c9
......@@ -819,17 +819,18 @@ command /home [<text>]:
stop
if {peco.%player%.shopenter} is 1:
clear {peco.%player%.shopenter}
set {pe.back.%player%} to location of player
wait 0.1 second
if arg 1 is not set:
if {pe.home.%player%} is not set:
message "&cYou do not have a home set yet, set one with &f/sethome"
stop
if {pe.home.%player%} is set:
teleport player to {pe.home.%player%}
if {language.%player%} is "chinese":
message "&b被传送到您的家温馨的家"
if {language.%player%} is "english":
message "&bTeleported to your home sweet home"
set {pe.back.%player%} to location of player
stop
if arg 1 is "confirm":
if {pe.changehome.%player%} is 1:
......
......@@ -336,6 +336,7 @@ command /potatotown <text="help"> [<text>]:
message "Town home has been set to %location of player%"
if arg 1 is "home":
if {ptown.%player%} is set:
set {pe.back.%player%} to location of player
teleport player to {ptown.%{ptown.%player%}%.home}
message "Teleported To Town Home"
if arg 1 is "mod":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment