Jump to content
  • 0

Setting server resourcepack via the Bukkit API


knokko

Question

I'm the developer of a custom items plug-in that needs a server resource pack to ensure that players see the right textures of the custom items. Currently, I use the Bukkit API to send the resource pack to players (using `Player.setResourcePack(url, hash)`).

For some reason, this doesn't seem to work on Minehut servers (but works fine on other server hosts): all players seem to automatically reject this resource pack, regardless of whether they allow server resource packs in their minecraft settings. (To be precise, the plug-in receives a `PlayerResourcePackStatusEvent` that is `DECLINED`).

Does anyone know why this happens?

I have read https://support.minehut.com/hc/en-us/articles/4999526664979-How-do-I-upload-resource-packs , so I know that server admins can manually select the resource pack via the Minehut interface, but it would be more convenient if the plug-in could handle the server resource pack automatically. Would that be possible?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Yes, Minehut only allows you to sent resourcepacks through whitelisted sources such as:

mc-resourcepacks
Digital Ocean
and Github

Anywhere else it will not enable the pack. You can still use the setResourcePack syntax, but you simply need to make the URL a pack from one of those whitelisted sites.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

  • 0

Thanks for your answer, this does explain a lot!


Do you know where I can find this complete server whitelist? Or whether it's possible to be added to this whitelist?

Also, do you happen to know what the motivation behind this whitelist is? Does it have some security benefits?

Link to comment
Share on other sites

  • 0
8 hours ago, knokko said:

Thanks for your answer, this does explain a lot!


Do you know where I can find this complete server whitelist? Or whether it's possible to be added to this whitelist?

Also, do you happen to know what the motivation behind this whitelist is? Does it have some security benefits?


Pretty sure MCpacks, digital ocean, and github are the only ones. No list as far as I know.. but I could be wrong.

The whitelist was added due to people using resourcepacks to steal IP addresses and other sensitive info.


You can suggest whitelist additions in the MH discord, but I doubt it will be added.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...