registerResourcePack

public static void registerResourcePack(String pluginName, String localPath, String url, boolean encrypts, boolean distributes, boolean zips, String reloadCommand)

Registers a resource pack with the ResourcePackManager. Either localPath or url must be provided (non-null), but not both.

Parameters

pluginName

The name of the plugin as it appears in the plugin list. Case-sensitive.

localPath

The relative path to the resource pack file (zipped or folder) from the plugins directory, or null if using URL.

url

The URL to download the resource pack from, or null if using local path.

encrypts

Whether the pack can be encrypted by the plugin. Currently does nothing.

distributes

Whether the plugin can distribute the pack. Currently does nothing.

zips

Whether the resource pack is already zipped. If false, ResourcePackManager will zip it.

reloadCommand

The reload command of the plugin adding a pack. Currently does nothing.