Solved Sending Ressource Pack !

  • 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.

PheonBest

Member
Jun 8, 2017
31
1
0
22
Hi !
Skript: dev29, Minecraft: spigot 1.12

Do semeone know how to send a ressource pack in this version please ? (without modifying the server's properties). I want to send the ressource pack after that the player has joined the server (by using a tellraw, a gui, etc ...)

Thank you :emoji_slight_smile:
 
I found that http://i.imgur.com/tUYqaZI.png (thanks to Polymeth :emoji_slight_smile:
[doublepost=1499072362,1499068660][/doublepost]Well it doesn't work:
[Skript] Can't understand this expression: 'new play_server_ressource_pack_send packet' (ResourcePackManager.sk, line 4: set {_packet} to new play_server_ressource_pack_send packet')
 
I found that http://i.imgur.com/tUYqaZI.png (thanks to Polymeth :emoji_slight_smile:
[doublepost=1499072362,1499068660][/doublepost]Well it doesn't work:
[Skript] Can't understand this expression: 'new play_server_ressource_pack_send packet' (ResourcePackManager.sk, line 4: set {_packet} to new play_server_ressource_pack_send packet')

spell 'resource' correctly? resource not ressource
 
I made this:
code_language.skript:
function packetRPSend(player: player, url: text, hash: text = ""):
    set {_packet} to new play_server_resource_pack_send packet
    set string pinfo 0 of {_packet} to {_url}
    if {_hach} = "":
        set string pinfo 1 of {_packet} to ("%hashed {_url} using ""SHA-1""%") #Need of SkUtilities
    else:
        send {_player} packet {_packet}
    message "&aRessource Pack Envoyé avec Succès !" to {_player}
command /rp:
    trigger:
        if mc version of player contains "1.8" or "1.9" or "1.10":
            send "&aRessource Pack en Envoi ..."
            packetRPSend(player, "http://download2164.mediafire.com/fmoha5prq1gg/48nkx83d3ndcnas/ZerionPack+1.8+%%26+1.9+%%26+1.10.zip")
        else:
            send "&aRessource Pack en Envoi ..."
            packetRPSend(player, "http://download2224.mediafire.com/1a8ywawn7aqg/z589dm2f0tzaj3i/Zerionpack+1.11+%%26+1.12.zip")
But it doesn't work. Any Solution ?
[doublepost=1499106760,1499105955][/doublepost]I modify the file's name and it works, thank you :emoji_slight_smile:
 
I made this:
code_language.skript:
function packetRPSend(player: player, url: text, hash: text = ""):
    set {_packet} to new play_server_resource_pack_send packet
    set string pinfo 0 of {_packet} to {_url}
    if {_hach} = "":
        set string pinfo 1 of {_packet} to ("%hashed {_url} using ""SHA-1""%") #Need of SkUtilities
    else:
        send {_player} packet {_packet}
    message "&aRessource Pack Envoyé avec Succès !" to {_player}
command /rp:
    trigger:
        if mc version of player contains "1.8" or "1.9" or "1.10":
            send "&aRessource Pack en Envoi ..."
            packetRPSend(player, "http://download2164.mediafire.com/fmoha5prq1gg/48nkx83d3ndcnas/ZerionPack+1.8+%%26+1.9+%%26+1.10.zip")
        else:
            send "&aRessource Pack en Envoi ..."
            packetRPSend(player, "http://download2224.mediafire.com/1a8ywawn7aqg/z589dm2f0tzaj3i/Zerionpack+1.11+%%26+1.12.zip")
But it doesn't work. Any Solution ?
[doublepost=1499106760,1499105955][/doublepost]I modify the file's name and it works, thank you :emoji_slight_smile:
If I remember correctly you can't use mediafire. Please use dropbox instead.
 
Status
Not open for further replies.