Automatically download resource pack

Discussion in 'Plugin Help/Development/Requests' started by CentrumGuy, Dec 27, 2014.

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

    CentrumGuy

    Hey guys I really need this for a plugin I'm working on. On the mineplex game "Minestrike", the server asks you if you want to download the resource pack and then like 2 ticks later, it automatically clicks the yes button for you. They did this using a packet but which one. I really need this for the COD-Warfare plugin I'm working on. Any help would be appreciated. Thanks
     
  2. Offline

    Freack100

    @CentrumGuy
    maybe it's some Packet "magic" like the insta-respawn?
     
  3. Offline

    mine-care

    @CentrumGuy even if i am completely against force respawn and force texture, ask folks from Protocol Lib, they will have a solution, also consider the fact that the mad player (like me) will afterwords change it by the options.
     
  4. Offline

    DemKazoo

    The default Minecraft Server allows this.. Just checkout the "server-resourcepack" line in the server.properties

    :confused:?

    I don't know if its called server-resourcepack though
     
  5. Offline

    CentrumGuy

    I know how to set a server texture pack. I just don't know how to automatically click the "yes" option for the client
     
  6. Offline

    teej107

  7. Offline

    CentrumGuy

  8. Offline

    xTigerRebornx

    @CentrumGuy Are you sure your client isn't just set to automatically accept it? I see nothing in packets that would suggest being able to force it.
     
  9. Offline

    ChipDev

    Making a cod too ^_^
     
  10. Offline

    bwfcwalshy Retired Staff

  11. Offline

    CentrumGuy

  12. Offline

    DemKazoo

    So you can force resourcepack players? Wouldn't that a little bit, ye.. So Developers can just set your resourcepack, and maybe to some crazy stuff which is not for underaged? :confused:
     
  13. Offline

    bwfcwalshy Retired Staff

    @DemKazoo You can't force them but you can check whether they accept to get it or deny it. With that you could kick the player if they deny.
     
    DemKazoo likes this.
  14. Offline

    AdamQpzm

  15. Offline

    bwfcwalshy Retired Staff

    @AdamQpzm Is it? Oh well never mind me unless you want it moved to Bukkit Alternates @CentrumGuy ?
     
    AdamQpzm likes this.
  16. Offline

    CentrumGuy

    I guess if it belongs there...

    @bwfcwalshy @mine-care
    I couldn't find anything. I don't know how to use the Resource Pack Status and have no idea what to do. Any ideas?

    I tried using the "setResourcePack" packet but it popped up with a screen of the prompt and closed afterwards, but nothing downloaded

    <Edited by bwfcwalshy: Merged posts, please use the edit button instead.>

    I found a packet that might work "PacketPlayOutCustomPayload" but I don't know how to use it to click the "Yes" button. Any ideas?

    <Edit by mrCookieSlime: Merged posts. Please don't triple post. There is an Edit Button right next to the Date.>
     
    Last edited by a moderator: Dec 28, 2014
  17. Offline

    1visible

    I don't know if you need it again but I'm currently coding a plugin to set resource pack for players on join or by command, and so they can't move until they downloaded the texture pack. And if they cancel or try to evade the download, they will automatically be kick. I'm working on it, but I don't know if it will be for Bukkit or Spigot or both so ... You will be able to find the plugin in my plugins folder on Bukkit if the plugin will be done with Bukkit only
     
Thread Status:
Not open for further replies.

Share This Page