跳到正文

ExpireNoMore

作者:TejasIsCool

A Minecraft mod that increases the expiration time of each user in the Minecraft server's usercache.json file.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

ExpireNoMore

Logo of the mod

A Minecraft mod that increases the expiration time in a Minecraft server’s usercache.json file.

More specifically, this mod makes it so that, every time the server is started or someone joins the server, the usercache.json file of the server is updated, so that whichever user’s expireson date is less than 50 years away, will have their value increase by another 100 years.

Don’t use the mod if you need the name to expire for whatever reason.

Warning: Make a backup of your usercache.json before running this mod

Note: This mod cannot recover previously removed/expired usercache. It can only save what currently exists.

Reason for this mod:

I wanted to see and compare the player statistics of the players on my server, and found a great project to do just that: https://github.com/pdinklag/MinecraftStats

It worked well, except for one part. It didn’t show all the players stats.

Searching around, I found that this was because the player statistics are stored with the player’s uuid as the filename.
Now, this would usually be fine, as the player’s uuid can be easily converted into their username if it were an online server.
However, my server was in “offline” mode. So therefore, the uuid’s could not be reversed.

Now usually, the names and uuids are stored in a file called usercache.json. Except, for some reason, every cache has an expiry time on it.
It had so happened that a few server members had not logged in for a long while, so their names weren’t cached in that file. So the stats project could not display their names.

So to finally fix that, I decided to make this mod. I don’t know if there is any reason for the expiration of names in the file. If you have a need for the expiry, do not use this mod.

About the mod

The 1.1.0 version of the mod should work on most fabric version(from 1.14.4 to the 1.21.8), and the 1.2.0 version working for 1.21.9–1.21.11, with atleast the fabric loader version being above 0.15.1

The minimum java requirement is java 8, although any higher version will work.

When you run the mod the first time, every username’s expire time will increase by 100 years (as long as its not already more than 50 years away).

常见问题

ExpireNoMore 支持哪些 Minecraft 版本?

ExpireNoMore 支持 Minecraft Java 版 1.14.4–1.21.11,共 39 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ExpireNoMore 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分