Recov 图标

Recov

作者:rebot | 分类:模组

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

Minecraft 版本: 1.21.4

平台: fabric

标签: management utility

资源介绍

This fabric mod is meant to be installed on the server only. It will detect player deaths and cache their inventories for some period of time. During this period, a server administrator can easily restore the items to the player.

The plugin is interacted with entirely through a command API. The actions are all subcommands of the recov command.

The commands are listed below.

/recov list [<player>]
/recov list [<onlyOnlinePlayers>] [<filter>]
/recov clear [<player>]
/recov restore <player> [<deathNumber>] [<sourcePlayer>]
/recov printDeathInventory <player> [<deathNumber>]
/recov setTicksUntilExpired <ticksUntilExpired>
/recov setTickUpdatePeriod <tickUpdatePeriod>
/recov setMaxInventoriesPerPlayer <maxInventoriesPerPlayer>
/recov setRequirePermissionToCache <requirePermissionToCache>

The list command, with no arguments passed, will list players who have stored inventories, including offline players. When passing a player's username, it will list the death inventories of that player.
The second set of optional arguments for the list command will allow one to only view the inventories of online players, and specify an optional filter.
A consequence of this is that, if one wants to list the death inventories of players whose names are either true or false, one must specify them in all uppercase. So,
/recov list TRUE will list the inventories of the player whose username is true, which /recov list true will list the players who are online and who have death inventories.

The clear command, with zero parameters,
will clear all death inventories. When passing a player's username, it will only clear that player's death inventories.

The restore command will restore a player's inventory. The deathNumber field specifies which death to restore from. If you want to restore the death inventory of one player to a different one, you can use the sourcePlayer parameter.

The printDeathInventory command will print the items in a player's inventory at the time of their death.

The setTicksUntilExpired will set the amount of ticks the mod will wait before deleting a player death inventory entry.
By default, this is set to 48000.

The setTickUpdatePeriod will set the amount of time the mod will wait before checking if there are any expired death inventories to remove.
By default, this is set to 8000.

The setMaxInventoriesPerPlayer will set the maximum inventories per player. If any more deaths occur, the oldest inventories are deleted early.
By default, this is set to 10.

The setRequirePermissionToCache will set whether the plugin will check if a player has the recov.cacheinventory permission before caching their inventory on death.
By default, this is set to false.

!!! DO NOT ENABLE setRequirePermissionToCache IF THE SERVER DOES NOT HAVE A PERMISSIONS MOD/PLUGIN. IT WILL CRASH ON ANY PLAYER DEATH !!!

Players with permission level of at least 3 have access to all recov commands, but they do not have the recov.cacheinventory permission.
If you are using a permissions mod, the following permissions correspond to
each command.

Permission Description
recov.command.recov.list Required to use the list subcommand.
recov.command.recov.clear Required to use the clear subcommand.
recov.command.recov.restore Required to use the restore subcommand.
recov.command.recov.printDeathInventory Required to use the printDeathInventory subcommand.
recov.command.recov.configure Required to use any of the configuration subcommands, which are setTicksUntilExpired, setTickUpdatePeriod, setMaxInventoriesPerPlayer, and setRequirePermissionToCache.
recov.cacheinventory Required to have inventory cached if requirePermissionToCache is set to true.

Removing the recov.cacheinventory permission from a player will not clear their currently-existing cached inventories.

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Expandi-craft

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

查看详情
Glaze

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

查看详情
Pigeon Post

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

查看详情
Carpet AMS Addition: NeoForged

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

查看详情