Phoenix616 / ResourcepacksPlugins

Set resource packs on whole proxy, per server and per world!
https://ci.minebench.de/job/ResourcepacksPlugins/
GNU General Public License v3.0
77 stars 16 forks source link

Plugin sends empty pack instead of the assigned pack #52

Closed iijj22gg closed 3 years ago

iijj22gg commented 3 years ago

I'm trying to make the plugin send a different resource pack depending on the dimension the player is in, so I set the "worlds" setting in the YML to

global: pack: overworldpack send-delay: 1 worlds: world: pack: overworldpack world_nether: pack: netherpack world_the_end: pack: endpack

I logged into the server, and absolutely nothing happened, not even when changing my dimension. I can load the packs using commands just fine, but when I change my dimension, the pack first unloads, then loads the empty pack. Do I have it set up improperly?

Phoenix616 commented 3 years ago

Please provide your full config as well as log.

iijj22gg commented 3 years ago

Sure.

debug: true
default-language: en
disable-metrics: false
autogeneratehashes: false
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
packs:
  overworldpack:
    url: https://www.dropbox.com/s/58s1zq020h76470/VanillaChanges-Overworld.zip?dl=1
    format: 5
    restricted: true
    permission: worldresourcepacks.pack.owp
    hash: 9b8fa61b94dadfc03345564d1c340627ae03f9e0
  netherpack:
    url: https://www.dropbox.com/s/k0l1ytrur3d8yiv/VanillaChanges-Nether.zip?dl=1
    format: 5
    restricted: true
    permission: worldresourcepacks.pack.np
    hash: 54072fe457e377ee3bac12cf043904a5fcd5a264
  endpack:
    url: https://www.dropbox.com/s/hxamqbs5vb392es/VanillaChanges-End.zip?dl=1
    format: 5
    restricted: true
    permission: worldresourcepacks.pack.ep
    hash: a0fa40956520282787b249591f19e65b1ed1d04e
empty:
  url: http://cdn.moep.tv/files/Empty.zip
  hash: 01517226212d27586ea0c5d6aff1aa5492dd2484
global:
  pack: overworldpack
  send-delay: 1
worlds:
  world:
    pack: overworldpack
  world_nether:
    pack: netherpack
  world_the_end:
    pack: endpack

latest.log

Phoenix616 commented 3 years ago

You are running an old build, please update. It's most likely because you have defined the pack as format 5 and the plugin not supporting that in your old version.

iijj22gg commented 3 years ago

Where do I get the latest build? I downloaded the jar directly from the Spigot website just yesterday

Phoenix616 commented 3 years ago

https://ci.minebench.de/job/ResourcepacksPlugins/ as linked in the Project readme and on the spigot resource page.

iijj22gg commented 3 years ago

That seems to have solved the problem. Thank you very much. I do have another question, however. Is there a way to make the player only endure one loading screen instead of two? Whenever I change dimensions, I seem to first unload the first pack and then load the second one.

Phoenix616 commented 3 years ago

No, that's not possible because of how the client works: It first unloads the old resource packs and then loads the new ones. Reloading the resources in one go would be something that Mojang needs to change.

iijj22gg commented 3 years ago

Alright, that'll have to do then. I might have to add a plugin to make players invincible temporarily after joining the server and changing dimensions.

Thank you for your help, this plugin enables me to add some cool functionality!