User's permission for texture packs

Discussion in 'Plugin Development' started by Dim100, Oct 31, 2021.

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

    Dim100

    Hello, I have been developing a plugin for a about year now.

    In my last update I wanted to add custom textures by using the player.setResourcePack() function. As far as I know 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. But the file has been rejected with this message:
    "We understand that there's nothing malicious in your code but we don't allow mods to download resource packs/texture packs/any file without the user's permission first"

    I am wondering do I have to do some kind of check before calling the setResourcePack() method or I just can't add texture packs this way?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Dim100 File has been rejected from where?
     
  3. Offline

    Dim100

    I have a project on bukkit and I have uploaded the file there but it was rejected from curseforge.
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Dim100 Please post the code you used.
     
  5. Offline

    Dim100

    This is the code I have used.
    Code:
        @EventHandler
        public void playerJoin(PlayerJoinEvent event){
            event.getPlayer().setResourcePack("https://www.dropbox.com/sh/7rlnpc09veplapx/AACkBZ5jtVaWO6sMOQLB0PH6a?dl=1");
        }
     
    Last edited: Oct 31, 2021
  6. Offline

    timtower Administrator Administrator Moderator

    @Dim100 So, talked to staff, they are willing to approve it after learning how it works.
    Please link your project.
     
  7. Offline

    Dim100

  8. Offline

    timtower Administrator Administrator Moderator

  9. Offline

    Dim100

    Okay, thank you!
     
Thread Status:
Not open for further replies.

Share This Page