I want to set a player's resource pack when the change worlds, but I can't figure out how to get this to work. This is what I am using: Code:java @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)public void onPlayerChangedWorldEvent(PlayerChangedWorldEvent e) {e.getPlayer().setResourcePack("[url]http://download733.mediafire.com/b3gowwkjvkbg/ix27bsfb4bv4tms/Unsimple[/url] 1.4.zip");} When I change worlds, it gives me the prompt and tells me it is downloading it, but my texture pack stays the same. Any help would be appreciated. Thanks for reading. PS: Before and after my link in the code, the bukkit forum is adding [ url] and [ /url]. This was not in my code.
Check in your actual Minecraft settings for your server, does server resource pack say enabled, disable or prompt?
MnMaxon Remember you can't force someone to you texture pack so your gonna have to make it so if they don't download texture pack to kick them or take them out that world..
Jimfutsu It's enabled SeniorCluckers I'm not trying to force them to use a texture pack, just suggest that they use it. Also, I'm pretty sure that you can't check if someone clicked yes or no.
Bump Is this possible? I feel like it shouldn't be very complicated. I tried using DynamicTextures (a plugin that changes texture packs), but I couldn't get that to work. I might have just been using it wrong, though.
Have you tried adding a slight delay from the world change, and also asking a friend to test and make sure it isn't just your client's settings.
RingOfStorms I tried from my brother's computer and it didn't work. I'll try from my friend's computer tomorrow. I'll try the delay thing too. AdamQpzm Are you sure? Do you know what packet? I couldn't find it.
fireblast709 How would you check? And isn't this a 1.8 not 1.7 so we would have to wait for a new version of bukkit?
If you're going to wait for that, You'll have to wait for quite some time. I don't think bukkit's coming back for a long long time (if even at all)
SeniorCluckers You don't have to wait for a new version of bukkit. you can use a protocol hack, but thats not really recommended
Protocol hack = allowing 1.8 clients to join 1.7 servers, meaning that you can send 1.8 packets to those clients. *cough* spigot
Funergy SeniorCluckers SmooshCakez Protocol hacks would be better supported at the site they are acquired from.