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 Force players to use server's Texture Pack

Discussion in 'Skript' started by FlameikTV, Mar 2, 2021.

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

    FlameikTV Member

    Joined:
    May 22, 2020
    Messages:
    19
    Likes Received:
    2
    Hi,
    I'm looking for some solution for forcing player's to use server's texture pack. I have tried to Google something, but it was little outdated or it wasn't been working. I have tried this code, but it didn't work.

    Code (Text):
    1. on join:
    2.     wait 1 second
    3.     send resource pack from "infinityland.eu/TexturePack/InfinityLand-Pack.rar" 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 ;)"
    (And yes, I have MundoSK and ProtocolLib..)

    Maybe somebody could help me with this :emoji_smile:
    Thank you :emoji_heart:

    --- Double Post Merged, Mar 3, 2021, Original Post Date: Mar 2, 2021 ---
    Hey,
    I figured it out after 1 day :emoji_grinning:

    I'm using this code, and I have also placed same link in server.properties file (idk if it has something to do with that, but it works now) and it works!
    Code (Text):
    1. on join:
    2.     wait 20 ticks
    3.     send resource pack from "https://www.dropbox.com/s/e3qxmaszob9gleh/InfinityLandRP.zip?dl=1" 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 "&4&l[RESOURCE PACK]%newline%&c&oByl/a jste vyhozen/a ze serveru z důvodu zamítnutí Resouce Packu.%newline%&r%newline%&7&oPro hru na serveru je nutné mít nainstalovaný%newline%&7&oa aktivní náš speciální Resource Pack..%newline%&r%newline%&r%newline%&eNáhradní možnosti instalace Resource Packu naleznete na:%newline%&6&lwww.InfinityLand.eu/ResourcePack%newline%&r%newline%&r%newline%&8© by InfinityLand.eu 2021"
    I have been looking for some solution all day and now it works, maybe somebody has same problem as me..

    Marked as solved
     
  2. quick007

    quick007 New Member

    Joined:
    Jul 9, 2020
    Messages:
    7
    Likes Received:
    0
    You can also use `on resource pack response` and `if resource pack was denied or failed to download`
     
Thread Status:
Not open for further replies.

Share This Page

Loading...