If an admin gives 5000 coins or more to a player it says "Sorry, thats too much!"
Please help me, i want to add this but idk how to do it.
Also, how do you make it so if the admin types in something like /moneyset Name Hello, so not a number it will say "Use numbers, not letters!"
Thanks
[doublepost=1492112839,1492048101][/doublepost]bump
Please help me, i want to add this but idk how to do it.
Also, how do you make it so if the admin types in something like /moneyset Name Hello, so not a number it will say "Use numbers, not letters!"
Thanks
code_language.skript:
command /moneyset [<offline player>] [<number>]:
permission: money.set
permission message: &4No Permission!
trigger:
arg 1 is set:
arg 2 is set:
if arg 1 is online:
if arg 1 is player:
send "&4You cant change the amount of rubies YOU have."
stop
difference between {sql_.diff.setrubies::%player%} and now is less than 30 seconds:
send "&4You used this command too many times!"
stop
set {sql_.diff.setrubies::%player%} to now
{@run_async} is "true":
$ thread
set {_message} to addRubies(arg 1, arg 2, 1)
send "&aSuccess!"
else:
send "&4Player Offline!"
else:
send "&6Wrong usage."
else:
send "&6Wrong usage."