1.16.5 Problem with ResourcePack

Discussion in 'Spigot Plugin Development' started by Bosternike, Jun 28, 2021.

Thread Status:
Not open for further replies.
  1. I have a problem with setting Player resource pack.
    If player has DECLINED I can't send resource pack again.

    (If player ACCEPTED everything works nice.)

    CODE:
    Code (Text):

    ((CraftPlayer) p).getHandle().setResourcePack(getConfig().getString("Settings.1_14-1_17"), getConfig().getString("Settings.bytes"));
     
     
  2. The moment a player declines a resource pack it changes the setting in their game itself to not allow any resource pack requests from that server, so no matter how many times you send the request it won't work...
    Also, you don't need NMS for this - Player#setResourcePack
     
  3. Thanks! :)
     
Thread Status:
Not open for further replies.