Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:forceresourcepacks:commands [2024/03/16 16:58] – phoenix616 | plugin:forceresourcepacks:commands [2024/04/06 22:56] (current) – [/frp globalassignment|assignment <assignment> [<options>]] phoenix616 | ||
---|---|---|---|
Line 1: | Line 1: | ||
# Commands | # Commands | ||
- | ## /frp reload [resend] | + | ## /frp |
+ | |||
+ | ### /frp reload [resend] | ||
Reloads the config file; resends the packs to every online player if the 2nd argument is " | Reloads the config file; resends the packs to every online player if the 2nd argument is " | ||
- | ## /frp generatehashes | + | ### /frp generatehashes |
Downloads the resource pack files and generates the sha1 hashes of them | Downloads the resource pack files and generates the sha1 hashes of them | ||
- | ## /frp version | + | ### /frp version |
Shows the version of this plugin | Shows the version of this plugin | ||
- | ## /frp pack < | + | ### /frp pack < |
Edit a value of a pack | Edit a value of a pack | ||
- | ## /frp addpack < | + | Options that you can modify: |
+ | |||
+ | #### url < | ||
+ | The URL of the pack. Needs to be a direct download, not a one-click hoster! | ||
+ | |||
+ | #### hash < | ||
+ | The sha1 hash sum of the pack's zip file. Not the URL! | ||
+ | |||
+ | #### uuid < | ||
+ | An UUID for the pack. If not set it will be created automatically. | ||
+ | |||
+ | #### version < | ||
+ | The Minecraft version that is required at a minimum to load the pack | ||
+ | |||
+ | #### format <format number> (optional) | ||
+ | The pack format. Can be used instead of the `version` for the plugin to atutomatically select the correct versions based on the format number. | ||
+ | |||
+ | #### restricted true|false (optional) | ||
+ | Whether only players with the specified permission should be able to automatically get the pack sent. | ||
+ | |||
+ | #### permission < | ||
+ | The permission a player needs to select the pack with /usepack and (if `restricted` is `true`) for when the pack is sent automatically. | ||
+ | |||
+ | ### /frp addpack < | ||
Add a new pack (check out mcrp.host if you need a server resource pack host) | Add a new pack (check out mcrp.host if you need a server resource pack host) | ||
- | ## /frp removepack < | + | ### /frp removepack < |
Remove a pack | Remove a pack | ||
- | ## /frp getpacks [< | + | ### /frp getpacks [< |
Get the currently applied pack of a player | Get the currently applied pack of a player | ||
- | ## /frp getstoredpack [< | + | ### /frp getstoredpack [< |
Get the stored pack of a player (requires UUID for offline players) | Get the stored pack of a player (requires UUID for offline players) | ||
- | ## /frp packusage < | + | ### /frp packusage < |
Get the applied and stored counts for a pack | Get the applied and stored counts for a pack | ||
- | ## /frp listassignments | + | ### /frp listassignments |
List all server/ | List all server/ | ||
- | ## /frp deleteassignment < | + | ### /frp deleteassignment < |
Delete a certain server/ | Delete a certain server/ | ||
+ | ### /frp globalassignment|assignment < | ||
+ | Show/edit values of a certain assignment or the global ones. | ||
- | ## /frp globalassignment|assignment < | + | Options: |
- | Show/edit values of a certain assignment or the global ones. Sub commands: | + | |
- | ### info | + | #### info |
Get information about the config values of the assignment | Get information about the config values of the assignment | ||
- | ### addpack < | + | #### addpack < |
Add a pack to the assignment | Add a pack to the assignment | ||
- | ### removepack < | + | #### removepack < |
Remove a pack from the assignment | Remove a pack from the assignment | ||
- | ### required true|false | + | #### required true|false |
Set whether the pack is required for the assignment. Only works on 1.17+ clients. Use the [kick](statuses# | Set whether the pack is required for the assignment. Only works on 1.17+ clients. Use the [kick](statuses# | ||
- | ### promptmessage < | + | #### promptmessage < |
Set the message that is displayed on the prompt screen for clients above 1.17 | Set the message that is displayed on the prompt screen for clients above 1.17 | ||
- | ### addoptionalpack < | + | #### addoptionalpack < |
Add an optional pack to the assignment | Add an optional pack to the assignment | ||
- | ### removeoptionalpack < | + | #### removeoptionalpack < |
Remove an optional pack from the assignment | Remove an optional pack from the assignment | ||
- | ### regex < | + | #### regex < |
- | Set a regex to match the server/ | + | Set a regular expression |
- | ### senddelay <delay in ticks> | + | #### senddelay <delay in ticks> |
Set the delay before sending the pack to a player | Set the delay before sending the pack to a player | ||
- | ### addaction < | + | #### addaction < |
Add an [action](actions) to the assignment to react on a specific [status](statuses) | Add an [action](actions) to the assignment to react on a specific [status](statuses) | ||
- | ### removeaction < | + | #### removeaction < |
Remove an [action](actions) from the assignment from a specific [status](statuses). (Or all actions of a [status](statuses) if no action is given) | Remove an [action](actions) from the assignment from a specific [status](statuses). (Or all actions of a [status](statuses) if no action is given) | ||
- | ### addfirstjoinaction < | + | #### addfirstjoinaction < |
Add an [action](actions) to the assignment to react on a specific [status](statuses) when it is the first time a player joins the server | Add an [action](actions) to the assignment to react on a specific [status](statuses) when it is the first time a player joins the server | ||
- | ### removefirstjoinaction < | + | #### removefirstjoinaction < |
Remove an [action](actions) from the assignment from a specific [status](statuses) when it is the first time a player joins the server. (Or all actions of a [status](statuses) if no action is given) | Remove an [action](actions) from the assignment from a specific [status](statuses) when it is the first time a player joins the server. (Or all actions of a [status](statuses) if no action is given) | ||
- | ### addpackaction < | + | #### addpackaction < |
Add an [action](actions) to the assignment to react on a specific [status](statuses) for a specific pack | Add an [action](actions) to the assignment to react on a specific [status](statuses) for a specific pack | ||
- | ### removepackaction < | + | #### removepackaction < |
Remove an [action](actions) from the assignment from a specific [status](statuses) for a specific pack. (Or all actions of a [status](statuses) if no action is given) | Remove an [action](actions) from the assignment from a specific [status](statuses) for a specific pack. (Or all actions of a [status](statuses) if no action is given) | ||
- | ### addfirstjoinpackaction < | + | #### addfirstjoinpackaction < |
Add an [action](actions) to the assignment to react on a specific [status](statuses) for a specific pack when it is the first time a player joins the server | Add an [action](actions) to the assignment to react on a specific [status](statuses) for a specific pack when it is the first time a player joins the server | ||
- | ### removefirstjoinpackaction < | + | #### removefirstjoinpackaction < |
Remove an [action](actions) from the assignment from a specific [status](statuses) for a specific pack when it is the first time a player joins the server. (Or all actions of a [status](statuses) if no action is given) | Remove an [action](actions) from the assignment from a specific [status](statuses) for a specific pack when it is the first time a player joins the server. (Or all actions of a [status](statuses) if no action is given) | ||
## /usepack | ## /usepack | ||
- | List all packs that you can choose | + | List all packs that you can choose. |
+ | |||
+ | There are also additional arguments to select a pack | ||
- | ## /usepack < | + | ### /usepack < |
Send a specific pack to yourself or another player, depending on the value of temporary it will only apply for this session or also re-apply on the next login. Values are true or false, omitting it will use the usepack-is-temporary config value (defaults to true) | Send a specific pack to yourself or another player, depending on the value of temporary it will only apply for this session or also re-apply on the next login. Values are true or false, omitting it will use the usepack-is-temporary config value (defaults to true) | ||
## /resetpack [< | ## /resetpack [< | ||
Reset the pack of a player. | Reset the pack of a player. |