Minecraft:Commands/serverpack: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|java}} | ||
{{ | {{MC/Debug warning}} | ||
{{Infobox command | {{Infobox command | ||
|name=serverpack | |name=serverpack | ||
| Line 11: | Line 11: | ||
== Syntax == | == Syntax == | ||
<code>serverpack push <url> [<uuid>] [<hash>]</code> | <code>serverpack push <url> [<uuid>] [<hash>]</code> | ||
: Installs the resource pack found at the specified URL on the server. An optional UUID and the file's SHA1 hash can also be specified for the server to be able to verify the integrity of the pack, like the {{ | : Installs the resource pack found at the specified URL on the server. An optional UUID and the file's SHA1 hash can also be specified for the server to be able to verify the integrity of the pack, like the {{MC/Cd|resource-pack-id}} and {{MC/Cd|resource-pack-sha1}} [[Minecraft:Server.properties|server properties]]. | ||
<code>serverpack pop <uuid></code> | <code>serverpack pop <uuid></code> | ||
: Removes the resource pack with the specified UUID from the server. | : Removes the resource pack with the specified UUID from the server. | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|url|string}} | ||
: Specifies the URL to download a resource pack from. | : Specifies the URL to download a resource pack from. | ||
: {{ | : {{MC/Arg desc|je=string|type=string}} | ||
{{ | {{MC/Argument|uuid|uuid}} | ||
: For {{ | : For {{MC/Cd|serverpack push}}, specifies an optional UUID for the resource pack to be installed. For {{MC/Cd|serverpack pop}}, specifies the UUID of the resource pack to remove. | ||
: {{ | : {{MC/Arg desc|je=uuid}} | ||
{{ | {{MC/Argument|hash|string}} | ||
: Specifies the SHA1 hash of the resource pack to be installed. | : Specifies the SHA1 hash of the resource pack to be installed. | ||
: {{ | : {{MC/Arg desc|je=string|type=word}} | ||
== Result == | == Result == | ||
| Line 33: | Line 33: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On success|1|1|0}} | {{MC/Output table|edition=je|On success|1|1|0}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.21.9|dev=Pre-Release 1|Added debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>, making the command accessible in the vanilla game.}} | |{{MC/HistoryLine||1.21.9|dev=Pre-Release 1|Added debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>, making the command accessible in the vanilla game.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/serverpack | de:Befehl/serverpack | ||
zh:命令/serverpack | zh:命令/serverpack | ||
Latest revision as of 20:13, 9 April 2026
Script error: No such module "Exclusive". Template:Warning Template:Infobox command
/serverpack is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It can install and remove server resource packs.
Syntax
serverpack push <url> [<uuid>] [<hash>]
- Installs the resource pack found at the specified URL on the server. An optional UUID and the file's SHA1 hash can also be specified for the server to be able to verify the integrity of the pack, like the
- REDIRECT Template:Code
Template:Redr and
- REDIRECT Template:Code
Template:Redr server properties.
serverpack pop <uuid>
- Removes the resource pack with the specified UUID from the server.
Arguments
<url>: string
- Specifies the URL to download a resource pack from.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|string}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
<uuid>: uuid
- For
- REDIRECT Template:Code
Template:Redr, specifies an optional UUID for the resource pack to be installed. For
- REDIRECT Template:Code
Template:Redr, specifies the UUID of the resource pack to remove.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|uuid}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
<hash>: string
- Specifies the SHA1 hash of the resource pack to be installed.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|string}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
History
de:Befehl/serverpack zh:命令/serverpack