Automatic Install Resource Packs

Discussion in 'Plugin Development' started by TGMGamingzz1, May 19, 2014.

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

    TGMGamingzz1

    Hello,
    I am making a plugin which will need someone to install a resource pack for certain items. I was just wandering if it is possible to install a resource pack when you log on the server and you don't have a choice to say yes or no it just starts to install. Please can someone tell me if this is possible and how to do it. Thanks
     
  2. Offline

    NathanWolf

    No that's not possible (without client mods or whatever), sounds horribly exploitable :)

    Giving them the option is the only way- but keep in mind once they say "Yes", it's automatic after that. It doesn't spam them on every login.
     
  3. Offline

    Smerfa

  4. Offline

    TGMGamingzz1

    What happenes when you delete the file from the server resource folder in your .minecraft? Do you get asked to select it again?
     
  5. Offline

    NathanWolf


    No idea, but I'd imagine so. I have noticed that it does re-download the pack on every reconnect, without asking, once you've given it permission. I'm hoping it checks for changes or something at least.
     
  6. Offline

    TGMGamingzz1

    Well there is a server that i have been on before and i cant remember it asking me if i wanted to use the resource pack. Every time i connect it does download it again without asking and also when i just deleted the file it auto started downloading again. so i must thing that this is possible some how?
     
  7. Offline

    Morrango

    player.setResourcePack("url");

    When this request is sent for the very first time from a given server, the client will first display a confirmation GUI to the player before proceeding with the download.
     
  8. TGMGamingzz1 I can't remember where it stores that you said yes for the first time but I know that you can't force a texture pack without getting permission at least once.
     
  9. Offline

    Garris0n

    It re-downloads it on every join without asking. In the snapshots you can edit whether the server is allowed to send packs via the same interface as where you change the IP, which is nice because the current "set and you can never change it again" system is incredibly stupid.
     
    NathanWolf likes this.
  10. Offline

    TheHandfish

    I believe 1.8 allows you to package resource packs in the world's folder. Maybe just wait until then?
     
Thread Status:
Not open for further replies.

Share This Page