DropTimer
掉落的物品现在会在其上方显示实时倒计时,并在时间归零时消失。
非常适合保持服务器整洁,并给玩家一个清晰的“拿走或失去”提示。
功能
- 每个掉落物品上方悬浮计时器,使用文本显示(无需盔甲架,无需额外生物)
- 按世界独立计时:大厅、生存、决斗等不同世界可设置不同时间,甚至完全关闭计时器
- 根据物品来源区分计时器:投掷(Q键)、玩家死亡、怪物、挖掘方块、钓鱼等
- 物品过滤器:将物品加入黑名单,或为特定材质设置独立的生命周期,支持通配符如
*_SHULKER_BOX
- 随剩余时间变色:绿色,然后黄色,最后红色
- 可选进度条、物品名称和堆叠数量,全部可配置
- 默认隐藏在方块后方,也可通过单一选项实现穿透墙壁可见
- 保持清晰可读:全亮度文字,无背景,垂直广告牌模式,确保上下移动视角时高度不跳动
- 智能合并:有计时器和无计时器的堆叠不会合并,合并后的堆叠保留较短的时间
- 可选择覆盖所有掉落物,或仅处理玩家投掷的物品
- 权限绕过:允许管理员或特定玩家不受限制
- 重载和关闭时清理标签,世界中不留任何残留
注意: 原版物品消失机制(默认5分钟)仍然生效。如果计时器超过
300秒,它会被原版机制提前清除,除非你在 spigot.yml 中调高 item-despawn-rate。
命令
| 命令 |
描述 |
/droptimer reload |
重载配置文件 |
/droptimer list |
显示所有世界的计时器状态 |
/droptimer set <world> <seconds> |
设置某个世界的计时器时长(0 = 关闭) |
/droptimer source <world|default> <source> <value> |
设置按来源的计时器(same、off 或秒数) |
/droptimer death <world|default> <value> |
death 来源的快捷命令 |
来源类型:thrown(投掷)、death(死亡)、mob(怪物)、block(方块)、fishing(钓鱼)、other(其他)。
权限
| 权限 |
描述 |
默认值 |
droptimer.admin |
使用 /droptimer 命令 |
op |
droptimer.bypass |
该玩家掉落的物品不显示计时器 |
无人 |
拥有 * 权限的玩家也自动拥有 droptimer.bypass。在配置文件中设置 use-bypass-permission: false 可禁用此绕过功能。
配置
所有配置项均位于 plugins/DropTimer/config.yml,每个选项都有注释说明。
示例如下:
default-seconds: 60
all-worlds: true
worlds:
lobby: 0
survival: 300
include-all-drops: true
see-through: false
sources:
default:
death: off
worlds:
survival:
death: 600
items:
blacklist:
- "*_SHULKER_BOX"
seconds:
DIAMOND: 900
lines:
- "&f%name% &7x%amount%"
- "%bar% &f%time%s"
bar-length: 10
lines 中的占位符:%name%、%amount%、%time%、%bar%、%color%。
注意:修改配置的命令会重写 config.yml,这将移除其中的注释。
依赖
- Minecraft 1.21 或更高版本,Java 21
- Paper(也兼容 Purpur 和 Pufferfish)或 Spigot
- 无需其他插件
- 不支持 Folia
- 物品名称仅在 Paper 上针对每个玩家进行翻译;在 Spigot 上将以英文显示。
安装
- 下载适用于 Paper 及其分支的 Paper jar,或适用于 Spigot 的 Spigot jar
- 将其放入
plugins/ 目录并重启服务器
- 编辑
plugins/DropTimer/config.yml 并运行 /droptimer reload
DropTimer
Dropped items now show a live countdown above them and disappear when it hits zero.
Great for keeping servers clean and giving players a clear "grab it or lose it" signal.
Features
- Floating timer above every dropped item, using text displays (no armor stands, no extra mobs)
- Per-world timers: different time for lobby, survival, duels, or no timer at all
- Different timers by item source: thrown (Q key), player death, mobs, mined blocks, fishing, other
- Item filter: blacklist items or give materials their own lifetime, with wildcards like
*_SHULKER_BOX
- Color by time left: green, then yellow, then red
- Optional progress bar, item name and stack size, all configurable
- Hidden behind blocks by default, or visible through walls with one option
- Stays readable: fullbright text, no background, vertical billboard so the height doesn't jump when you look up or down
- Smart merging: stacks with and without a timer never merge, and merged stacks keep the shorter time
- Covers all drops or only items players throw, your choice
- Bypass permission for staff or specific players
- Cleans up its labels on reload and shutdown, nothing is left behind in the world
Note: Vanilla item despawn (5 minutes by default) still applies. Timers longer than
300 seconds will be cut short by it, unless you raise item-despawn-rate in spigot.yml.
Commands
| Command |
Description |
/droptimer reload |
Reload the config |
/droptimer list |
Show the timer of every world |
/droptimer set <world> <seconds> |
Set a world's timer (0 = off) |
/droptimer source <world|default> <source> <value> |
Set a per-source timer (same, off or seconds) |
/droptimer death <world|default> <value> |
Shortcut for the death source |
Sources: thrown, death, mob, block, fishing, other.
Permissions
| Permission |
Description |
Default |
droptimer.admin |
Use /droptimer |
op |
droptimer.bypass |
Items this player drops get no timer |
nobody |
Players with the * permission also have droptimer.bypass. Set use-bypass-permission: false in the config to disable bypass.
Configuration
Everything is in plugins/DropTimer/config.yml, with comments for every option.
Example:
default-seconds: 60
all-worlds: true
worlds:
lobby: 0
survival: 300
include-all-drops: true
see-through: false
sources:
default:
death: off
worlds:
survival:
death: 600
items:
blacklist:
- "*_SHULKER_BOX"
seconds:
DIAMOND: 900
lines:
- "&f%name% &7x%amount%"
- "%bar% &f%time%s"
bar-length: 10
Placeholders in lines: %name%, %amount%, %time%, %bar%, %color%.
Note: commands that change the config rewrite config.yml, which removes its comments.
Requirements
- Minecraft 1.21 or newer, Java 21
- Paper (also Purpur and Pufferfish) or Spigot
- No other plugins needed
- Folia is not supported
- Item names are translated per player on Paper only. On Spigot they are shown in English.
Installation
- Download the Paper jar for Paper and its forks, or the Spigot jar for Spigot
- Drop it into
plugins/ and restart the server
- Edit
plugins/DropTimer/config.yml and run /droptimer reload
评论 0
登录后参与评分
还没有评论,来抢沙发吧