Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/serverpack: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{exclusive|java}}
{{MC/Exclusive|java}}
{{debug warning}}
{{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 {{cd|resource-pack-id}} and {{cd|resource-pack-sha1}} [[Minecraft:Server.properties|server properties]].
: 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 ==
{{argument|url|string}}
{{MC/Argument|url|string}}
: Specifies the URL to download a resource pack from.
: Specifies the URL to download a resource pack from.
: {{arg desc|je=string|type=string}}
: {{MC/Arg desc|je=string|type=string}}
{{argument|uuid|uuid}}
{{MC/Argument|uuid|uuid}}
: For {{cd|serverpack push}}, specifies an optional UUID for the resource pack to be installed. For {{cd|serverpack pop}}, specifies the UUID of the resource pack to remove.
: 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.
: {{arg desc|je=uuid}}
: {{MC/Arg desc|je=uuid}}
{{argument|hash|string}}
{{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.
: {{arg desc|je=string|type=word}}
: {{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
  1. REDIRECT Template:Code

Template:Redr and

  1. 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
  1. REDIRECT Template:Code

Template:Redr, specifies an optional UUID for the resource pack to be installed. For

  1. 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

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/serverpack zh:命令/serverpack