1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Sending Ressource Pack !

Discussion in 'Skript' started by PheonBest, Jul 2, 2017.

Thread Status:
Not open for further replies.
  1. PheonBest

    PheonBest Member

    Joined:
    Jun 8, 2017
    Messages:
    31
    Likes Received:
    1
    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:

     
  2. Best Answer:
    Post #4 by ShaneBee, Jul 3, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    You can use MundoSK packets for this. There's various snippets out there or you can make it yourself
     
    • Agree Agree x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I found that http://i.imgur.com/tUYqaZI.png (thanks to Polymeth :emoji_slight_smile:
    --- Double Post Merged, Jul 3, 2017, Original Post Date: Jul 3, 2017 ---
    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')
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    spell 'resource' correctly? resource not ressource
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I made this:
    Code (Skript):
    1. function packetRPSend(player: player, url: text, hash: text = ""):
    2.     set {_packet} to new play_server_resource_pack_send packet
    3.     set string pinfo 0 of {_packet} to {_url}
    4.     if {_hach} = "":
    5.         set string pinfo 1 of {_packet} to ("%hashed {_url} using ""SHA-1""%") #Need of SkUtilities
    6.     else:
    7.         send {_player} packet {_packet}
    8.     message "&aRessource Pack Envoyé avec Succès !" to {_player}
    9. command /rp:
    10.     trigger:
    11.         if mc version of player contains "1.8" or "1.9" or "1.10":
    12.             send "&aRessource Pack en Envoi ..."
    13.             packetRPSend(player, "http://download2164.mediafire.com/fmoha5prq1gg/48nkx83d3ndcnas/ZerionPack+1.8+%%26+1.9+%%26+1.10.zip")
    14.         else:
    15.             send "&aRessource Pack en Envoi ..."
    16.             packetRPSend(player, "http://download2224.mediafire.com/1a8ywawn7aqg/z589dm2f0tzaj3i/Zerionpack+1.11+%%26+1.12.zip")
    But it doesn't work. Any Solution ?
    --- Double Post Merged, Jul 3, 2017, Original Post Date: Jul 3, 2017 ---
    I modify the file's name and it works, thank you :emoji_slight_smile:
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    If I remember correctly you can't use mediafire. Please use dropbox instead.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...