Home›Java›Mods›[API] ResourcePackApi [1.7 | 1.8 | 1.9 | 1.10]
ModsJava

[API] ResourcePackApi [1.7 | 1.8 | 1.9 | 1.10]

Java mod listed for Minecraft 1.7–1.9. Download on the author's site.

⬇ Download on Spigot
This API adds a ResourcePackStatusEvent which is called when a Player accepts or declines a resource pack.
It also includes method the send resource packs with a custom hash.



[​IMG]
I enjoy making all of my plugins for free, but I need your help to keep them for free.​

Example:
Code (Text):
@EventHandler
    public void onResourcePackStatus(ResourcePackStatusEvent e) {
        e.getPlayer();// Player that accepted/declined the resource pack
        e.getStatus();// Status of the resource pack (SUCCESSFULLY_LOADED, DECLINED, FAILED_DOWNLOAD, ACCEPTED)
        e.getHash();// Hash of the resource pack (Can be set with ResourcePackAPI#setResourcepack)
    }
Code (Text):
ResourcePackAPI.setResourcepack(Bukkit.getPlayer("inventivetalent"), "http://path/to/resource/pack.zip", "amazing_resource_pack");
Note: getHash dos not work in 1.10, since it is no longer sent by the client.


Currently compatible with the following versions

Maven
[​IMG]



Links


Code (spiget-meta (Unknown Language)):
SlZOd2EkUm9kI1J3YW1GeUooVWtXa2QzZFdGPk4rSmFWelV3WVZoYWJHUiNSbk5hVnpVdytHMDVlVnAzUCswa0okUk1NMEp6WkZka2NHSnBPRDBrSiRSalIzZypXakpzZFZ7VyRtKmpNamsqWTIxT2JGViNSbXBoTUVaUlUxTmFNbHBZJG5waFZ6bDFVRk5XTWxwWSRucGhWemwxJGxFOVAkUiNaPlFs

Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.

​
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[API] ResourcePackApi [1.7 | 1.8 | 1.9 | 1.10] is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 14,597 times (via Spigot). Download it and open it directly in the game.

Explore more