Commit 0c4c02f3 authored by Tommy Ang's avatar Tommy Ang 🤣

Fix issue with player not being able to cancel town leave confirmation

parent 80d2ec3a
......@@ -1068,7 +1068,13 @@ command /potatotown <text="help"> [<text>]:
if {language.%player%} is "english":
message "[&6PTown&f] &4Please perform &b/ptown destroy &4first before using this command!"
if arg 1 is "cancel":
if {ptown.destroy.confirmation.%player%} is 1:
if {ptown.leave.confirmation.%player%} is 1:
clear {ptown.leave.confirmation.%player%}
if {language.%player%} is "chinese":
message "[&6PTown&f] &4已取消。"
if {language.%player%} is "english":
message "[&6PTown&f] &4Cancelled."
else if {ptown.destroy.confirmation.%player%} is 1:
clear {ptown.destroy.confirmation.%player%}
if {language.%player%} is "chinese":
message "[&6PTown&f] &4已取消。"
......
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