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.

Resource packs

Discussion in 'Skript' started by JackyBoy, Feb 25, 2017.

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

    JackyBoy Member

    Joined:
    Feb 4, 2017
    Messages:
    104
    Likes Received:
    1
    Hey there, is there a way to make a skript on when a player does /rp it will download the Resource pack for them?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    There is a way using MundoSk Packets not sure how it works
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I think you need MundoSk, here:

    Code (Skript):
    1. command /rp:
    2.     trigger:
    3.           send resource pack from "yoururl.com" to player
    4.  
    5. on packet event play_client_resource_pack_status: #Need MundoSK and ProtocolLib
    6.     if "%""ResourcePackStatus"" pinfo 0 of event-packet%" = "DECLINED":
    7.         kick player due to "&cYou need download the resource pack for stay playing here ;)"
     
    #3 ShaneBee, Feb 25, 2017
    Last edited by a moderator: Feb 25, 2017
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thanks, but when I add that other plugin (MundoSK) all the Sk files dont work so I removed it and removed line 5 down yet it still does not work
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    We need the error, server version, plugin list, etc.
    Also do you have ProtocolLib?
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    My server is 1.10 and yes I do have ProtocolLib
    --- Double Post Merged, Feb 25, 2017, Original Post Date: Feb 25, 2017 ---
    http://prntscr.com/edadwu
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Try this:

    Code (Skript):
    1. command /rp:
    2.     trigger:
    3.         send resource pack from "yoururl.com" to player
    4.  
    5. on packet event play_client_resource_pack_status:
    6.     if "%""ResourcePackStatus"" pinfo 0 of event-packet%" = "DECLINED":
    7.         kick player due to "&cYou need download the resource pack for stay playing here ;)"
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    http://prntscr.com/edahmx
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
Thread Status:
Not open for further replies.

Share This Page

Loading...