公共末影箱
这是一个服务端、可配置的 Fabric Minecraft 模组,通过末影箱方块添加了一个新的公共物品栏。 该模组还内置了日志记录系统,供服务器管理员跟踪对此公共物品栏的更改以及其他有用的配置选项。
由 Ember Host 赞助
如果您正在寻找性价比高且提供卓越价值的 Minecraft 服务器主机,请查看 Ember Host。您可以通过使用下方的横幅支持我的开发,这将使我获得首购金额的 50% 分成,同时为您带来 10% 的折扣。
功能
访问公共末影箱物品栏
玩家可以通过蹲下然后右键点击末影箱方块来访问公共物品栏。 玩家也可以手持末影箱物品并右键点击以打开它。
玩家可以使用命令 /publicenderchest usePublicInventory [true|false] 切换公共物品栏的使用状态,
以免在末影箱方块上放置方块时造成干扰。
当用户将鼠标悬停在公共物品栏中的物品堆栈上时, 他们将能够看到是谁将该物品放入物品栏中, 以及多久之前放入的。
服务器操作员也可以使用命令 /publicenderchest openPublicEnderChestInventory 访问公共末影箱物品栏。
配置
该模组有一个配置文件,位于 /config/publicenderchest.toml。
在这里,您可以配置以下几项内容:
- 玩家黑名单:您可以启用并使用一个黑名单,防止被列入名单的玩家访问公共末影箱物品栏。
- 维度黑名单:您可以启用并使用一个维度黑名单,禁止玩家在特定维度中使用公共末影箱物品栏。
- 数据库清理早于天数:您可以配置模组将根据条目年龄清理条目的时间阈值。
服务器操作员不受玩家和维度黑名单的限制。
您还可以找到可供操作员使用的命令,通过运行 /publicenderchest config 来编辑这些设置
(黑名单设置本身除外)。
还可以通过运行 /publicenderchest config reload 重新加载配置。
日志系统
该模组集成了日志记录系统, 允许服务器管理员查看玩家如何与公共末影箱物品栏进行交互。 您可以看到交互发生的时间、执行者、 插入或移除的物品数量,以及具体的物品堆栈。
要查询数据库,您可以使用以下命令。
/publicenderchest database query [before|after] <days> <hours> <minutes> <seconds> <playerName>
天、小时、分钟和秒是一个时间参数,将根据所选的 时间搜索类型 确定查询的日志范围:
- Before(之前):返回从开始到当前时间减去命令中指定时间的所有一致日志。例如,运行
/publicenderchest database query before 0 1 0 0,您将看到从开始到一小时之间发生的所有日志。 - After(之后):返回从当前时间减去命令中指定时间到当前时间之间发生的所有日志。例如,如果运行
/publicenderchest database query after 1 0 0 0,您将看到从现在到一天前发生的所有日志。
建议优先使用 after 查询,因为与 before 查询相比,模组需要查找的日志条目显著更少;before 查询会从指定时间参数一直回溯到开始。
还有一个可选的 playerName 参数,可用于查找特定玩家执行的操作。返回的日志将对应于具有给定名称的玩家所做的操作,无论玩家的 UUID 如何。
在执行查询时,日志将以分页样式显示在您的聊天窗口中。
- 将鼠标悬停在玩家用户名上可查看其完整 UUID。点击用户名可将 UUID 复制到剪贴板。
- 将鼠标悬停在物品标识符上可查看完整的物品堆栈信息。
在日志底部,您会看到两个图标 << 和 >>,
您可以点击它们翻转到上一页或下一页。
最后,还有一个用于清理数据库的命令...
/publicenderchest database purge
...这将清理模组 purge_older_than_x_days 配置设置中指定的时间之前的数据库日志。
您也可以使用...
/publicenderchest database purge <entriesOlderThanDays>
...来使用命令中指定的 entriesOlderThanDays 参数清理条目,而不是使用模组配置中的设置。
数据库在服务器关闭时也会自动清理。
所有与数据库相关的命令仅对操作员可用。
可选客户端功能
您可以选择在客户端安装此模组。 这样做将使您可以在按住 Cntrl 或 Alt 键的同时右键点击背包中的末影箱物品,以打开公共末影箱物品栏。
此外, 在客户端安装模组将允许服务器和客户端之间正确同步物品堆栈信息, 从而正确使用如 Item Scroller 等模组, 并在不同物品栏之间快速移动物品堆栈时减少闪烁现象。
支持
如果您想报告错误或提出建议,可以通过模组的 问题追踪器 进行反馈。
鸣谢
- 感谢 Kioku 为本模组提供的图标和横幅。
Public Ender Chest
This server-side, configurable Fabric Minecraft mod adds a new public inventory accessible via Ender Chest blocks. The mod also includes a built-in logging system for server admins to keep track of changes to this public inventory, and other useful configuration options.
Sponsored by Ember Host
Check out Ember Host if you are looking for a Minecraft server host that offers exceptional value for price. You can support my development by using the banner below, which gives a 50% cut for every first purchase to me, alongside a 10% discount to you.
Features
Accessing the Public Ender Chest inventory
Players are able to access the public inventory by crouching and then right-clicking an Ender Chest block. Players can also hold an Ender Chest item in their hand and then right-click to open it.
Players can toggle the usage of the public inventory
using the command /publicenderchest usePublicInventory [true|false],
so that it doesn't get in the way of placing blocks on an Ender Chest block.
When users hover their mouse over an item stack in the public inventory, they will be able to see the player who inserted that item into the inventory, as well as how long ago it was inserter.
Server operators can also access the Public Ender Chest inventory using the command /publicenderchest openPublicEnderChestInventory.
Configuration
The mod has a configuration file which can be found in /config/publicenderchest.toml.
Here, you can configure a couple of things:
- Player Blacklist: You can toggle and use a blacklist which will prevent added players from being able to access the public Ender Chest inventory.
- Dimension Blacklist: You can toggle and use a blacklist for dimensions where players are not allowed to use the Public Ender Chest inventory.
- Database Purge Older Than Days: You can configure the entries that the mod will purge based on how old they are.
Server operators bypass both the player and dimension blacklists.
You will also find commands available to operators to edit these settings
(except the blacklist settings themselves) by using /publicenderchest config.
The config can also be reloaded by using /publicenderchest config reload.
Logging system
The mod has an integrated logging system that allows server admins to see how players have interacted with the Public Ender Chest inventory. You can see when the interaction happened, who did it, how many items were inserted or removed, and the Item stack itself.
To query the database, you can use the following command.
/publicenderchest database query [before|after] <days> <hours> <minutes> <seconds> <playerName>
The days, hours, minutes, and seconds are a time parameter that will determine the queried logs based on the chosen time search type:
- Before: Returns all the logs from the beginning until the current time minus the time specified in the command. For example, by running
/publicenderchest database query before 0 1 0 0, you will see all the logs that happened between the start and one hour ago. - After: Returns all the logs that happened between the current time and the current time minus the time specified in the command. For example, if you run
/publicenderchest database query 1 0 0 0, you will see all the logs that happened between now and 1 day ago.
You should favor using after queries, since the mod will have to look for considerably less log entries, compared to using a before query, which will go all the way back to the beginning starting from the specified time parameter.
There is also an optional playerName parameter that you can use to look for actions done by a specific player. The logs returned will correspond to those made by players with the given name, regardless of players' UUID.
When performing a query, the logs will be shown in your chat in a paginated style.
- Hover your mouse over the player's username to see their full UUID. Click on the username to copy the UUID to your clipboard.
- Hover your mouse over the Item identifier to see the full Item stack information.
At the bottom of the logs, you will see two icons << and >>,
which you can click to turn to the previous or the next page.
Finally, there is also a command to purge the database...
/publicenderchest database purge
...which will purge database logs
which are older than the time specified in the mod's purge_older_than_x_days config setting.
You can also use...
/publicenderchest database purge <entriesOlderThanDays>
...to purge entries
using the entriesOlderThanDays parameter specified in the command rather than the setting in the mod's config.
The database is also automatically purged upon server shutdown.
All the database related commands are only available to operators.
Optional client-side functionality
You can optionally install this mod in your client. Doing so will let you right-click an Ender Chest item in your inventory while holding the Cntrl or Alt keys to open the Public Ender Chest inventory.
Furthermore, installing the mod in the client will allow for proper syncing of item stack information between the server and the client, allowing for proper usage of mods like Item Scroller, and reducing item stack flickering when doing quick item stack movements between inventories.
Support
If you would like to report a bug, or make a suggestion, you can do so via the mod's issue tracker.
Credits
- Thanks to Kioku for the mod's icon and banner.
下载 Public Ender Chest
下载 Public Ender Chest
下载 Public Ender Chest
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Public Ender Chest
下载 Public Ender Chest
下载 Public Ender Chest
下载 Public Ender Chest
下载 Public Ender Chest
- 已更新至 1.21.11。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧