Skip to content

Latest commit

 

History

History
140 lines (85 loc) · 4.4 KB

README.md

File metadata and controls

140 lines (85 loc) · 4.4 KB

Version Stars License


Logo

ResourcePackCdn

An plugin that automatically link resource packs to cdn urls!

Contact to me · Report a bug · Request a feature

About The Project

Do you know that PMMP's resource pack sending is veryvery slow, and we can provide a resource pack via an external URL instead?
Already someone is using a CDN server to provide a resource pack...
This plugin created for someone (like me) using the server's resource pack folder as a CDN folder!

Just use this plugin to link resource packs to cdn urls as automatically!

About configurations

This plugin provides several configurations for a wide range of people to use

# The base url of the resource pack cdn
base_url: "https://cdn.example.com/"

# The directory where the resource packs are stored
base_dir: "./resource_packs"

# Whether to remove the extension from the resource pack file name
remove_extension: false
  • base_url : The base url of the resource pack cdn
    This option for set the url address of the cdn server. Values such as 'localhost' are not supported because they are used by the player. Must be a valid public url address.

  • base_dir : The directory where the resource packs are stored
    This option for set the cdn base directory. The path is set based on the PMMP's directory, so './resource_pack' above is the default resource pack path. This plug-in does not register a resource pack for that path to the server. It only link to the cdn url, if resource pack file is under this path.

  • remove_extension : Whether to remove the extension from the resource pack file name
    This option for using if the cdn server omits the extension of the file. For example, if you using alvin's 'ResourcePackCDN', this option should be set to true.

If you want to set up a separate CDN url for each resource pack, use alvin's 'Remote Resource Pack'


Target software:

This plugin officially only works with Pocketmine-MP.


Downloads

Download from Github Releases

Github Downloads


Installation

  1. Download plugin .phar releases
  2. Move downloaded .phar file to server's /plugins/ folder
  3. Restart the server


License

Distributed under the LGPL 3.0. See LICENSE for more information