Commit 64971f4f authored by Tommy Ang's avatar Tommy Ang 🤣

Implement regex check to disallow illegal characters

parent 55c1f20e
......@@ -89,8 +89,8 @@ command /potatotown <text="help"> [<text>]:
if arg 2 is equal to "Safezone":
message "."
if arg 2 contains " ":
message "Name spacing is not allowed!"
if arg 2 regex does not match "[a-zA-Z]+":
message "Illegal characters are not allowed!"
if {ptownlist.chunk::%chunk at player%} is not set:
set {ptown.%arg 2%.size} to 0
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment