Solved Help with parsing arguments

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Adrihun

Member
Feb 1, 2017
368
6
0
Please help me with this:

I want to make it so if an Admin types in 5,000 or more it will say "Too much!"
And also...
I want to make it so if an Admin types in a letter instead of a number like /moneyset Name Hello, it will say
"Use numbers, not letters"

Please help me with this because i don't know how to do it
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."
 
In the future, be useful and reply with what you did to solve your issue instead of just changing the post to say "a". That's just spammy and unhelpful while providing what you did to solve your issue may help someone in the future.

I've reverted your post to before the edit and locked this thread.
 
Status
Not open for further replies.