跳到正文

PlayerPrefs

作者:berryget

A per-player keepinventory, player locator bar, and hardcore mode configurator

收藏

介绍

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

Have you ever ran a small minecraft server with friends, and then immediately had people complain about your gamerule configuration? The obvious choice is KeepInventory being True, but the 7 goobers who hog your ram will never stop complaining about it. I present: PlayerPrefs! No one can be upset if they specifically get what they want. This mod allows you to have certain global gamerule settings be applied to individual players only. So, some people can be set to have KeepInventory true, and some players can have it set to false. This is extended to the player locator bar, and hardcore mode.

Settings

KeepInventory

This works as normal KeepInventory, just per-player. One person dies and keeps their inventory, the other doesnt. Straight forward

Player Locator Bar

If a player has this set to “True”, they can see other players that also have this setting set to “True”. However, if a player has this set to “False”, other players can’t see them, but they are entirely cut off from seeing other players on the bar aswell. No one can see them, but they can’t see anyone as a result.

Hardcore Mode

This acts, literally, as normal hardcore mode in standard survival. When someone has their hardcore mode PlayerPrefs selector set to true, they must restart the game, and the mod will send the player a packet as if they actually had hardcore mode. As a result, the player has the hardcore mode hearts without having to adjust server.preferences.

Commands

/playerprefs hardcore <player> <true/false/default> – changes the hardcore state of a player upon rejoin of the server

/playerprefs keepinventory <player> <true/false/default> – changes the keepinventory setting of a player immediately

/playerprefs locatorbar <player> <true/false/default> – changes the locator bar setting of a player immediately

/playerprefs status <player> – shows all settings for a given player

常见问题

PlayerPrefs 支持哪些 Minecraft 版本?

PlayerPrefs 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

PlayerPrefs 怎么安装?

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

评论

登录后评论和评分