Hey, i wanna edit the message that i get if my arg 2 is not a number.
The default message of skript is like this:
'test' is not a number
Correct usage: /command [<offline player>] [<number>]
i wanna change this message with "if arg 2 is not a number" but it doesnt work.
heres my skript
The default message of skript is like this:
'test' is not a number
Correct usage: /command [<offline player>] [<number>]
i wanna change this message with "if arg 2 is not a number" but it doesnt work.
heres my skript
Code:
command /setgeld [<offline player>] [<number>]:
trigger:
if arg 1 is set:
if arg 2 is set:
if arg 2 is number:
if arg 1 is player:
message "&cDu darfst deinen eigenen Kontostand nicht setzen"
else:
if player has permission "setgeld":
set {geld.%arg 1%} to arg 2
message "&aKonstostand von &e%arg 1% &awurde auf &e%arg 2% &agesetzt."
else:
message "&a/setgeld arg1 &carg2 &f[Arg2 muss eine Nummer sein!]"
else:
message "&a/setgeld arg1 &carg2 &f[Du hast arg 2 nicht gesetzt!]"
else:
message "&a/setgeld &carg1 arg2 &f[Du hast arg1 und arg2 nicht gesetzt!]"