Resource pack share

  • 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 community!

    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!

tatarararat

New Member
Feb 13, 2023
7
0
1
I want to share resource packs and receive them through /rp set *nickname*. What's wrong?

Code:
command /rp [<text>] [<text>]:
    trigger:
        if arg-1 is "set":
            if arg-2 contains "http://" or "https://":
                set {rp.%player%} to arg-2
                message "§b[CloudBlock 2.0] §aResource uploaded."
            else:
                message "%arg-2% - not url"
        else:
            message "%arg-1%"
            set {_rp} to {rp.%argument-1%}
            message "%{_rp}%"
            send the resource pack from "{_rp}" with hash "hash" to the player
 
I want to share resource packs and receive them through /rp set *nickname*. What's wrong?

Code:
command /rp [<text>] [<text>]:
    trigger:
        if arg-1 is "set":
            if arg-2 contains "http://" or "https://":
                set {rp.%player%} to arg-2
                message "§b[CloudBlock 2.0] §aResource uploaded."
            else:
                message "%arg-2% - not url"
        else:
            message "%arg-1%"
            set {_rp} to {rp.%argument-1%}
            message "%{_rp}%"
            send the resource pack from "{_rp}" with hash "hash" to the player
You need to tell us what the errors are so we can help you