Provide Pack Hashes 图标

Provide Pack Hashes

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/providepackhashes
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: paper

标签: management utility

资源介绍

Remember Url Hashes

What It Does

This plugin helps your players avoid re-downloading server resource packs when you already have them.

Why Is This Plugin Needed?

  • Vanilla Minecraft already tries to do this, but if the server doesn't have SHA1 hash manually specified in server.properties, the client downloads the pack every time
  • The plugin stores the previous hash and other resource pack data (based on the url), so the server can send that hash to players
  • If your pack url stays the same between updates, you can easily run a command to update the hash
  • You can even set a new pack URL from console and automatically prepare its hash!

Commands

Commands

The plugin keeps track of your server resource pack's Id, URL and SHA-1 hash:
You can check that with /urlhashesstate:

Plugin's Data State

Updating the hash or changing the URL

If you updated the pack's url, the plugin will update the hash automatically, because the URL changed.
But if your link is always the same, you can easily run a command to update the hash whenever you want:

  • /urlHashesUpdateHash to update the SHA-1 hash

Or even tell the plugin to completely change the link to a new version and update the hash:

  • /urlHashesChangePackUrl to change the resource pack link and update hashes
    Note: this command can only be executed from console by default for security reasons

Both will tell you that it started to download the pack to determine it's hash:

Hash Update Or Full Pack URL Change

And everything will always be visible in your console too:

Console On Hash Update Or URL Change

You can tell the plugin to save the data between restarts:

  • /urlhashestogglesaving to toggle data saving

Toggling Saving Data

So when the server restarts or reloads, it won't download the pack again:

Loaded With Saved Data

Note, that with saving and the same link all the time, you'll need to run /urlHashesUpdateHash yourself. Again, only if your link stays the same between updates.

Config Options

You can edit plugin's settings in the config (plugins/config/ProvidePackHashes)
The only exclusive option there at the moment is whether you allow players (with permissions) to change the pack URL, or just console (by default).

Supported Environment

Paper servers (1.21 - 1.21.8)

Alternative approach

You can have the same behaviour on your client, if you play on a server with this issue and you aren't an administrator.
For this, use my Fabric client-side mod: Remember Url Hashes

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Better Vanilla Combat

价格:0 墨喵币
下载量:0

查看详情
Craft Sounds

价格:0 墨喵币
下载量:0

查看详情
Myths and Magic (Centimental)

价格:0 墨喵币
下载量:0

查看详情
Cheats+: Ultra Furnace

价格:0 墨喵币
下载量:0

查看详情