FeedMe
手持食物时右键点击玩家,该玩家会吃掉它。物品会从你手中消失,他们获得与自行食用相同的饥饿值和饱和度,并附带一点爱心粒子效果和打嗝动画。这就是核心功能,其余皆为细节打磨。
兼容 Paper 1.20.5 及更高版本(包含 26.x)。
功能说明
喂食。 食物数值直接取自物品本身,因此面包提供 5 点饥饿值,牛排提供 8 点,并附带正确的饱和度加成。计算逻辑在所有支持版本中与原版进食一致,包括 1.21.2 中的饱和度重做机制。在创造模式下,食物不会被消耗,这与原版行为相同。你无法给自己喂食,且旁观者会被忽略。
确认机制。 默认情况下,目标玩家会收到一条包含可点击的 [Accept](接受)和 [Deny](拒绝)按钮的消息。请求会在 30 秒后过期,或者当你们分开走动、有人断开连接,或目标选择退出时自动取消。使用 feedme.force 权限可跳过提示并立即喂食。
冷却时间。 你自己两次喂食之间间隔 10 秒,同一玩家再次被喂之前间隔 30 秒。两者均可配置,拥有 feedme.bypass.cooldown 权限的玩家不受限制,且这些冷却时间在重新登录后依然保留。
退出选项。 执行 /feedme toggle 后,任何人都无法再给你喂食。所有针对你的待处理请求都会立即取消。
统计数据。 插件会记录你喂食他人的次数以及被你喂食的次数。这些数据存储在玩家数据(PDC)中,因此重启服务器后不会丢失,无需额外维护数据库。
多语言支持。 内置英文和俄文。每位玩家都看到其客户端对应的语言,缺失的文本行将回退到英文。想要添加其他语言?只需在 lang 文件夹中放入 messages_fr.yml 并重新加载即可。
命令
| 命令 |
功能 |
/feedme help |
列出所有可用命令 |
/feedme toggle |
停止或恢复接受喂食 |
/feedme stats [player] |
显示你自己或某位在线玩家的喂食统计 |
/feedme accept / deny |
回答喂食请求 |
/feedme reload |
重新加载配置文件和语言文件 |
Tab 补全仅显示你实际有权使用的命令。
权限
| 权限节点 |
默认分配 |
用途 |
feedme.use |
所有人 |
给他人喂食 |
feedme.force |
OP |
跳过确认提示 |
feedme.bypass.cooldown |
OP |
无视冷却时间 |
feedme.bypass.fullhunger |
OP |
给已经饱腹的玩家喂食 |
feedme.stats |
所有人 |
使用 /feedme stats 查看统计 |
feedme.admin |
OP |
使用 /feedme reload 重载配置 |
占位符
需要 PlaceholderAPI 支持,但插件在没有它的情况下也能正常运行:
| 占位符 |
返回值 |
%feedme_fed% |
该玩家喂食他人的次数 |
%feedme_received% |
该玩家被喂食的次数 |
%feedme_toggle% |
true 或 false |
配置
config.yml 中的所有设置均已添加注释。简要说明如下:主手交互范围设为 3 格(设为 0 则禁用此检查),默认阻止对已满饥饿值的玩家进行喂食,确认机制开启且超时时间为 30 秒,冷却时间分别为 10 秒和 30 秒,音效和粒子效果可根据需要修改。
兼容性
Paper、Purpur 及其他基于 Paper 的分叉服务器,版本从 1.20.5 至 26.x。需要 Java 21 或更高版本(尽管 26.x 版本的服务器自身要求 Java 25)。Spigot 和 Folia 不兼容。
两点诚实说明:喂食仅使用主手操作,否则一次点击可能会同时消耗两个物品。此外,直到玩家至少进行一次喂食或被喂食操作前,统计数据将显示“无数据”。
发现 Bug?请告诉我你使用的版本以及你点击了什么。
FeedMe
Right-click a player while holding food and they eat it. The item leaves your hand, they get the same hunger and saturation they would get from eating it themselves, plus a little heart particle and a burp. That's the whole idea, the rest is polish.
Works on Paper 1.20.5 and newer, 26.x included.
What it does
Feeding. Food values come from the item itself, so bread gives 5 hunger and a steak 8, with proper saturation on top. The math matches vanilla eating on every supported version, including the saturation rework from 1.21.2. In creative your food isn't consumed, same as in vanilla. You can't feed yourself, and spectators are ignored.
Confirmation. By default the target gets a message with clickable [Accept] and [Deny] buttons. A request dies after 30 seconds, when the two of you walk apart, when someone disconnects, or when the target opts out. With feedme.force you skip the prompt and feed right away.
Cooldowns. 10 seconds between your own feeds, 30 seconds before the same player can be fed again. Both are configurable, both are ignored with feedme.bypass.cooldown, and both survive a relog.
Opt-out. /feedme toggle and nobody can feed you. Any pending requests on you are cancelled right away.
Stats. The plugin remembers how many times you fed someone and how many times you got fed. The numbers live in player data (PDC), so they survive restarts and there is no extra database to babysit.
Languages. English and Russian are bundled. Every player sees the language of their own client, and missing lines fall back to English. Want another one? Drop a messages_fr.yml into the lang folder and reload.
Commands
| Command |
What it does |
/feedme help |
List commands |
/feedme toggle |
Stop or resume being fed |
/feedme stats [player] |
Show feed stats for you or an online player |
/feedme accept / deny |
Answer a feeding request |
/feedme reload |
Reload config and languages |
Tab completion only shows commands you can actually use.
Permissions
| Permission |
Default |
What for |
feedme.use |
everyone |
Feed people |
feedme.force |
op |
Skip the confirmation |
feedme.bypass.cooldown |
op |
Ignore cooldowns |
feedme.bypass.fullhunger |
op |
Feed players who are already full |
feedme.stats |
everyone |
Use /feedme stats |
feedme.admin |
op |
Use /feedme reload |
Placeholders
Needs PlaceholderAPI, but the plugin works fine without it:
| Placeholder |
Value |
%feedme_fed% |
Times the player fed someone |
%feedme_received% |
Times the player was fed |
%feedme_toggle% |
true or false |
Config
Everything in config.yml is commented. Short version: 3 block reach (0 disables the check), full hunger bars blocked by default, confirmations on with a 30 second timeout, cooldowns 10 and 30 seconds, sound and particle are yours to change.
Compatibility
Paper, Purpur and other Paper forks from 1.20.5 up to 26.x. Java 21 or newer, though 26.x servers demand Java 25 on their own. Spigot and Folia won't work.
Two honest notes: feeding uses the main hand only, because otherwise one click could eat two items. And stats show "no data" until a player actually feeds or gets fed at least once.
Found a bug? Tell me which version you're on and what you clicked.
评论 0
登录后参与评分
还没有评论,来抢沙发吧