|
1 | 1 | # Resourceloader |
2 | 2 |
|
3 | | -**Resourceloader** is a simple, flexible plugin for Minecraft servers that allows for seamless management of resource packs without requiring players to endure the default server resource pack loading process. The plugin supports multiple resource packs, enabling players to load specific packs on demand via commands. |
| 3 | +A simple and flexible resource pack loader and merger plugin for Minecraft servers. Load different resource packs and merge multiple packs into one with ResourceLoader! |
4 | 4 |
|
5 | | -## Key Features |
| 5 | +## Features |
6 | 6 |
|
7 | | -- **Simplified Resource Pack Loading:** Avoid the default server-side resource pack loading experience, which can be confusing or annoying for new players. |
8 | | -- **Dynamic Resource Pack Selection:** Load specific resource packs as needed using commands. |
9 | | -- **Customizable Configurations:** Define and manage multiple resource packs via the `config.yml` file. |
| 7 | +- Load the server's default resource pack with a simple command |
| 8 | +- Configure and load multiple additional resource packs |
| 9 | +- Merge multiple resource packs in the plugin itself |
| 10 | +- Support for both URL and file-based resource packs |
| 11 | +- Easy-to-use commands |
| 12 | +- Permission-based access control |
| 13 | +- Simple configuration |
10 | 14 |
|
11 | 15 | ## Commands |
12 | 16 |
|
13 | | -### `/load [packname]` |
14 | | -- **Description:** Loads a resource pack for the player. |
15 | | -- **Usage:** |
16 | | - - `/load` - Loads the default server pack. |
17 | | - - `/load <packname>` - Loads a specific resource pack by name. |
18 | | -- **Permission:** `resourceloader.load` |
19 | | - |
20 | | -### `/listpacks` |
21 | | -- **Description:** Lists all available resource packs. |
22 | | -- **Usage:** `/listpacks` |
23 | | -- **Permission:** `resourceloader.list` |
24 | | - |
25 | | -### `/resourcereload` |
26 | | -- **Description:** Reloads the plugin configuration. |
27 | | -- **Usage:** `/resourcereload` |
28 | | -- **Permission:** `resourceloader.reload` |
| 17 | +- `/load` - Load the default server resource pack |
| 18 | +- `/load <packname>` - Load a specific resource pack |
| 19 | +- `/mergepack <output-file>.zip <pack1> <pack2> [pack3...]` - Merge existing resource packs in the plugin itself |
| 20 | +- `/listpacks` - List all available resource packs |
| 21 | +- `/resourcereload` - Reload the plugin configuration |
| 22 | +- `/resourceversion` - Check the version of ResourceLoader you're running |
29 | 23 |
|
30 | 24 | ## Permissions |
31 | 25 |
|
32 | | -- **`resourceloader.load`** |
33 | | - - Allows players to load resource packs. |
34 | | - - Default: `true` |
35 | | -- **`resourceloader.list`** |
36 | | - - Allows players to list available resource packs. |
37 | | - - Default: `true` |
38 | | -- **`resourceloader.reload`** |
39 | | - - Allows operators to reload the plugin configuration. |
40 | | - - Default: `op` |
41 | | - |
42 | | -## Configuration (`config.yml`) |
| 26 | +- `resourceloader.load` - Allows using the /load command (default: true) |
| 27 | +- `resourceloader.list` - Allows using the /listpacks command (default: true) |
| 28 | +- `resourceloader.reload` - Allows reloading the plugin configuration (default: op) |
| 29 | +- `resourceloader.admin` - Allows access to all the admin commands of ResourceLoader (default: op) |
| 30 | +- |
| 31 | +## Configuration |
43 | 32 |
|
44 | 33 | ```yaml |
45 | | -# Main server resource pack URL |
46 | | -# This pack is loaded when using /load without arguments |
47 | | -server-pack: "https://example.com/server-pack.zip" |
| 34 | +# Main server resource pack |
| 35 | +# Can be either a URL or a file name in the packs folder |
| 36 | +# For URLs: "https://example.com/server-pack.zip" |
| 37 | +# For files: "server-pack.zip" |
| 38 | +server-pack: "server-pack.zip" |
| 39 | + |
| 40 | +# Web server settings |
| 41 | +server-port: 40021 # Default port, can be changed to any open port on your host |
| 42 | +localhost: false # Set to false for production servers, true only for local testing |
| 43 | +server-address: "" # Will try to auto-detect if empty |
| 44 | +fallback-address: "localhost" # Used if auto-detection fails |
48 | 45 |
|
49 | 46 | # Additional resource packs |
50 | | -# These packs can be loaded using /load <packname> |
51 | | -# To add a new pack, use a key:"value" format |
| 47 | +# Can use either URLs or files from the packs folder |
| 48 | +# For URLs: "https://example.com/examplepack.zip" |
| 49 | +# For files: "example-pack.zip" |
52 | 50 | resource-packs: |
53 | | - example: "https://example.com/dungeons-pack.zip" |
54 | | - example0: "https://example.com/example0.zip" |
55 | | - example1: "https://example.com/example1.zip" |
| 51 | + exampleurlpack: "https://example.com/examplepack.zip" |
| 52 | + examplefilepack: "example-pack.zip" |
56 | 53 | ``` |
57 | 54 |
|
58 | | -### Adding New Resource Packs |
59 | | -1. Open `config.yml`. |
60 | | -2. Add a new entry under `resource-packs` in the format `key: "URL"`. |
61 | | -3. Save the file and run `/resourcereload` to apply the changes. |
62 | | - |
63 | | -## How It Works |
64 | | - |
65 | | -1. Players can use `/load` to load the default resource pack or a specific pack by name. |
66 | | -2. Use `/listpacks` to see all available resource packs. |
67 | | -3. Administrators can reload the plugin configuration using `/resourcereload`. |
68 | | - |
69 | | -## Example |
70 | | - |
71 | | -- **Loading Default Pack:** |
72 | | - ``` |
73 | | - /load |
74 | | - ``` |
| 55 | +## Installation |
75 | 56 |
|
76 | | -- **Loading a Specific Pack:** |
77 | | - ``` |
78 | | - /load example |
79 | | - ``` |
| 57 | +1. Download the latest release |
| 58 | +2. Place the JAR file in your server's `plugins` folder |
| 59 | +3. Start/restart your server |
| 60 | +4. A `packs` folder will be created in `plugins/Resourceloader/` |
| 61 | +5. Place your resource pack files in the `packs` folder |
| 62 | +6. Configure the packs in `config.yml` |
| 63 | +7. Use `/resourcereload` to apply changes |
80 | 64 |
|
81 | | -- **Listing Available Packs:** |
82 | | - ``` |
83 | | - /listpacks |
84 | | - ``` |
| 65 | +## File-based Resource Packs |
85 | 66 |
|
86 | | -- **Reloading Configuration:** |
87 | | - ``` |
88 | | - /resourcereload |
89 | | - ``` |
| 67 | +To use file-based resource packs: |
| 68 | +1. Place your .zip resource pack files in the `plugins/Resourceloader/packs/` folder |
| 69 | +2. In config.yml, use just the filename (e.g., "my-pack.zip") instead of a full URL |
| 70 | +3. The plugin will automatically look for the file in the packs folder |
90 | 71 |
|
91 | | -## Installation |
| 72 | +## URL-based Resource Packs |
92 | 73 |
|
93 | | -1. Download the plugin JAR file. |
94 | | -2. Place it in the `plugins` folder of your Minecraft server. |
95 | | -3. Start the server to generate the default configuration file. |
96 | | -4. Customize `config.yml` as needed. |
97 | | -5. Use `/resourcereload` to apply your changes. |
| 74 | +For URL-based packs: |
| 75 | +1. Use the complete URL in config.yml (e.g., "https://example.com/pack.zip") |
| 76 | +2. Ensure the URL is directly downloadable |
| 77 | +3. The URL must point to a valid Minecraft resource pack .zip file |
98 | 78 |
|
99 | 79 | ## Requirements |
100 | 80 |
|
101 | | -- Minecraft Server Version: `1.13` or higher |
102 | | -- Java Version: `17` or higher |
| 81 | +- Minecraft 1.13 or newer |
| 82 | +- Spigot/Paper server |
103 | 83 |
|
104 | | -## Credits |
| 84 | +## Support |
105 | 85 |
|
106 | | -**Author:** DefectiveVortex |
107 | | -**Website:** [GitHub Repository](https://github.com/DefectiveVortex/Resourceloader) |
| 86 | +If you encounter any issues or have suggestions, please create an issue on the GitHub repository. |
108 | 87 |
|
109 | | ---- |
| 88 | +## License |
110 | 89 |
|
111 | | -Feel free to contribute or suggest improvements via the [GitHub repository](https://github.com/DefectiveVortex/Resourceloader). |
| 90 | +This project is licensed under the MIT License - see the LICENSE file for details. |
0 commit comments