Minigame Modules - AddstarMC/Minigames GitHub Wiki
Minigame Modules
Minigames ships with a number of included modules. Some are used compulsorarily for all minigames ie the LobbySettings module others are used when you enable certain mechanics. ie CTF Module or Juggernaut module And some can be used if you wish ie Loudout Module
Resource Pack Module (since 1.13.1)
The resource pack module is optional. Games can enable it and and the player will be sent a resource pack
they can will automatically download and use while playing that game.
The plugin then sends a empty resource pack to replace clear the custom pack out.
Configuration
The plugin will save the empty resource pack to
plugin directory/resources/emptyresourcepack.zip
You will need to upload this pack to an available webserver to allow players to download it Then update your minigames configuration with the url.
resources:
empty:
url: "https://update.this/emptyresourcepack.zip"
This is the minimum requirement to force the Resource managemenent system to load. The url must be valid. You can add further resource packs by adding more sections each section is the name of the resource you want. You can call it anything you like. But you cant have 2 packs named the same.
resources:
empty:
url: "https://update.this/emptyresourcepack.zip"
coolresourepack:
url: "https://cool.resource.com/resource.zip"
The packs will be downloaded and stored on the server to allow correct SH1 Hash generation and comparison by clients. They are not downloaded with a zip extension we apply a custom extension so they are indicitive of the local files for hash checks. They are compared at load with the remote url and updated if required.
Enabling
To enable a game to use a pack In the GUI enable the resourcepack module and then enter the resource pack name you wish to use.
Thats it..when a player joins a game they are sent a request to use the pack and the URL from which to get it. Player can optional turn off server resources in the client GUI.
Forcing
The force options means if they do that ..the game will not allow them to play. If you enable the force option and they cannot download the pack then also the game will not allow them to play. However hacked clients might bypass these checks.