你是否曾和朋友一起运行过小型 Minecraft 服务器,然后立刻有人抱怨你的 gamerule(游戏规则)配置?显而易见的选择是将 KeepInventory(保留物品栏)设为 True,但那 7 个霸占你内存的家伙永远都不会停止抱怨。我隆重推出:PlayerPrefs!如果他们明确得到了自己想要的东西,就不会有人感到不满。此模组允许你将某些全局 gamerule 设置仅应用于个别玩家。因此,可以设置某些玩家的 KeepInventory 为 true,而其他玩家则设为 false。此功能同样扩展至玩家定位栏和硬核模式。
设置
KeepInventory
其工作方式与正常的 KeepInventory 相同,只是针对每个玩家单独生效。一个人死亡但保留物品栏,另一个人则不保留。简单直接。
玩家定位栏
如果某玩家将此设置为“True”,他们可以看到其他也将此设置设为“True”的玩家。然而,如果某玩家将此设置为“False”,其他玩家将看不到他们,但他们自己也完全无法在定位栏上看到其他玩家。没有人能看到他们,但结果是他们也无法看到任何人。
硬核模式
这实际上等同于标准生存模式下的正常硬核模式。当某玩家的硬核模式 PlayerPrefs 选择器被设置为 true 时,他们必须重启游戏,模组会向该玩家发送一个数据包,仿佛他们真的处于硬核模式中。因此,该玩家无需调整 server.properties 即可拥有硬核模式的心形生命值图标。
命令
/playerprefs hardcore <player> <true/false/default> - 更改玩家在重新加入服务器时的硬核状态
/playerprefs keepinventory <player> <true/false/default> - 立即更改玩家的 keepinventory 设置
/playerprefs locatorbar <player> <true/false/default> - 立即更改玩家的定位栏设置
/playerprefs status <player> - 显示指定玩家的所有设置
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧