Name | ResourcePack |
Syntax | resourcepack [url:<url>] [hash:<hash>] (forced) (prompt:<text>) (targets:<player>|...) |
Short Description | Prompts a player to download a server resource pack. |
Full Description | Sets the current resource pack by specifying a valid URL to a resource pack.
The player will be prompted to download the pack, with the optional prompt text or a default vanilla message. Once a player says "yes" once, all future packs will be automatically downloaded. If the player selects "no" once, all future packs will automatically be rejected. Players can change the automatic setting from their server list in the main menu. Use "hash:" to specify a 40-character (20 byte) hexadecimal SHA-1 hash value (without '0x') for the resource pack to prevent redownloading cached data. Specifying a hash is required, though you can get away with copy/pasting a fake value if you don't care for the consequences. There are a variety of tools to generate the real hash, such as the `sha1sum` command on Linux, or using the 7-Zip GUI's Checksum option on Windows. Specify "forced" to tell the vanilla client they must accept the pack or quit the server. Hacked clients may still bypass this requirement. "Forced" and "prompt" inputs only work on Paper servers. Optionally specify players to send the pack to. If unspecified, will use the linked player. See also resource pack status. |
Related Tags | None
|
Usage Example |
|
Group | player |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/ResourcePackCommand.java#L28 |