库存检查点
默认情况下,玩家库存每 30 分钟自动保存一次。
每个检查点可保存:
- 主背包
- 快捷栏
- 盔甲
- 副手物品
- 经验等级
- 经验进度
- 生命值
- 饥饿值
- 饱和度
- 游戏模式
- 世界与位置
- 时间戳
每位玩家最多保留 10 个检查点。当超出限制创建新检查点时,最旧的一个将被移除。
非常适合在意外、死亡、错误或失误后恢复物品。
库存回滚
管理员可以使用简单命令恢复玩家的先前库存:
/rollinv checkpoint <player> <1-10>
示例:
/rollinv checkpoint Kelvin 1
1 表示最新的检查点。
10 表示最旧的已保存检查点。
在恢复之前,OneDropCore 可以为玩家当前的库存创建备份以确保安全。
Web 库存查看器
OneDropCore 包含一个轻量级的基于浏览器的库存查看器。
默认地址:
Web 查看器显示:
- 在线玩家
- 用户名
- UUID
- 生命值
- 饥饿值
- 经验等级
- 世界
- 位置
- 盔甲槽位
- 副手槽位
- 快捷栏
- 完整背包网格
- 物品数量
- 耐久度指示器
- 物品详情
查看器通过令牌系统进行保护,仅允许授权的管理员查看玩家库存。
AutoTools(自动工具)
玩家可以使用以下命令切换 AutoTools:
/autotools
启用后,OneDropCore 会在挖掘方块时自动从玩家的快捷栏中选择最佳工具。
它可以考虑:
- 正确的工具类型
- 工具材质等级
- 效率附魔
- 时运偏好
- 精准采集偏好
- 耐久度保护
这使得挖掘更加顺畅,无需玩家频繁手动切换工具。
AutoMiner(自动采矿)
玩家可以使用以下命令切换 AutoMiner:
/autominer
AutoMiner 可以根据配置安全地挖掘相连的方块,例如矿脉或原木。
安全限制包括:
- 每次激活的最大方块数
- 每秒刻的方块数
- 冷却时间
- 黑名单方块
- 工具耐久度检查
- 背包已满检查
- TPS/内存安全检查
- 受保护方块检查
AutoMiner 旨在有用且不破坏服务器性能。
命令
| 命令 |
描述 |
/odc |
插件主命令 |
/odc status |
查看插件/服务器状态 |
/odc reload |
重新加载插件配置 |
/odc optimize now |
手动运行优化 |
/odc optimize status |
查看优化状态 |
/odc web status |
查看 Web 服务器状态 |
/odc web token |
显示 Web 访问令牌 |
/rollinv save <player> |
为玩家保存检查点 |
/rollinv saveall |
为所有在线玩家保存检查点 |
/rollinv list <player> |
列出已保存的检查点 |
/rollinv checkpoint <player> <1-10> |
恢复某个检查点 |
/rollinv restorelatest <player> |
恢复最新检查点 |
/autotools |
切换 AutoTools |
/autotools status |
查看 AutoTools 状态 |
/autominer |
切换 AutoMiner |
/autominer status |
查看 AutoMiner 状态 |
/autominer mode vein |
使用集群采矿模式 |
/autominer mode tunnel |
如果启用,使用隧道模式 |
权限
| 权限 |
描述 |
onedropcore.admin |
完全管理员访问 |
onedropcore.optimize |
使用优化命令 |
onedropcore.rollback |
恢复库存检查点 |
onedropcore.checkpoint.save |
保存检查点 |
onedropcore.checkpoint.list |
列出检查点 |
onedropcore.autotools |
使用 AutoTools |
onedropcore.autominer |
使用 AutoMiner |
onedropcore.autominer.tunnel |
使用隧道模式 |
onedropcore.web |
访问 Web 相关命令 |
Web 库存图标
Web 库存查看器支持物品图标。
将 PNG 文件放置在:
plugins/OneDropCore/web/assets/items/
示例:
diamond_sword.png
iron_pickaxe.png
dirt.png
golden_apple.png
如果缺少图标,Web 查看器将显示一个干净的备用物品框。
安全说明
OneDropCore 设计用于真实生存服务器,安全可靠。
它避免:
- 默认删除重要生物
- 破坏受保护的方块
- 运行巨大的卡顿循环
- 从不安全的 Web 线程访问 Bukkit API
- 虚假的 TPS 提升
- 虚假的网络优化
- 不安全的 AutoMiner 行为
该插件专注于真实的服务器端改进,而非虚假的性能数据。
重要限制
服务端 Paper 插件 无法直接检测来自普通原版 Minecraft 客户端的原始键盘按键(如 J)。
这意味着 AutoMiner 需通过以下命令切换:
/autominer
如果你想要 J 键切换功能,你需要一个独立的客户端模组、宏或启动器按键绑定来运行 /autominer。
要求
- Paper 服务器
- Java 21+
- 推荐 Minecraft 1.20.6+ / 1.21.x
安装
- 下载插件 jar 文件。
- 将其放入服务器的
plugins 文件夹中。
- 重启服务器。
- 如有需要,编辑配置文件。
- 使用:
/odc status
/odc web token
- 打开库存查看器:
http://服务器IP:8906/?token=YOUR_TOKEN
适用场景
- 生存服务器
- SMP(单人多人)服务器
- 私人好友服务器
- 中小型 Paper 服务器
- 需要恢复玩家物品栏的服务器
- 希望通过网页查看管理员物品栏的服务器
- 希望拥有更安全的自动化工具的服务器
简介
OneDropCore 为服务器管理员提供了一套强大的多功能插件:
- 优化服务器负载
- 保存玩家物品栏
- 恢复丢失的物品栏
- 通过浏览器查看物品栏
- 自动切换工具
- 安全自动挖矿
- 防止服务器过载
一个插件,多种实用系统。专为实用的 Minecraft 服务器管理而打造。
Inventory Checkpoints
Player inventories are automatically saved every 30 minutes by default.
Each checkpoint can save:
- Main inventory
- Hotbar
- Armor
- Offhand
- XP level
- XP progress
- Health
- Food level
- Saturation
- Game mode
- World and location
- Timestamp
Each player keeps up to 10 checkpoints. When a new checkpoint is created after the limit, the oldest one is removed.
Perfect for recovering items after accidents, deaths, bugs, or mistakes.
Inventory Rollback
Admins can restore a player’s previous inventory using a simple command:
/rollinv checkpoint <player> <1-10>
Example:
/rollinv checkpoint Kelvin 1
1 means the newest checkpoint.
10 means the oldest saved checkpoint.
Before restoring, OneDropCore can create a backup of the player’s current inventory for safety.
Web Inventory Viewer
OneDropCore includes a lightweight browser-based inventory viewer.
Default address:
The web viewer shows:
- Online players
- Username
- UUID
- Health
- Food
- XP level
- World
- Location
- Armor slots
- Offhand slot
- Hotbar
- Full inventory grid
- Item amount
- Durability indicator
- Item details
The viewer is protected with a token system so only authorized admins can view player inventories.
AutoTools
Players can toggle AutoTools with:
/autotools
When enabled, OneDropCore automatically selects the best tool from the player’s hotbar when mining blocks.
It can consider:
- Correct tool type
- Tool material tier
- Efficiency enchantment
- Fortune preference
- Silk Touch preference
- Durability protection
This makes mining smoother without requiring players to manually switch tools all the time.
AutoMiner
Players can toggle AutoMiner with:
/autominer
AutoMiner can safely mine connected blocks such as ore veins or logs, depending on configuration.
Safety limits include:
- Max blocks per activation
- Blocks per tick
- Cooldowns
- Blacklisted blocks
- Tool durability checks
- Inventory full checks
- TPS/memory safety checks
- Protected block checks
AutoMiner is designed to be useful without destroying server performance.
Commands
| Command |
Description |
/odc |
Main plugin command |
/odc status |
View plugin/server status |
/odc reload |
Reload plugin config |
/odc optimize now |
Run optimization manually |
/odc optimize status |
View optimization status |
/odc web status |
View web server status |
/odc web token |
Show web access token |
/rollinv save <player> |
Save checkpoint for a player |
/rollinv saveall |
Save checkpoints for all online players |
/rollinv list <player> |
List saved checkpoints |
/rollinv checkpoint <player> <1-10> |
Restore a checkpoint |
/rollinv restorelatest <player> |
Restore newest checkpoint |
/autotools |
Toggle AutoTools |
/autotools status |
View AutoTools status |
/autominer |
Toggle AutoMiner |
/autominer status |
View AutoMiner status |
/autominer mode vein |
Use vein mining mode |
/autominer mode tunnel |
Use tunnel mode if enabled |
Permissions
| Permission |
Description |
onedropcore.admin |
Full admin access |
onedropcore.optimize |
Use optimization commands |
onedropcore.rollback |
Restore inventory checkpoints |
onedropcore.checkpoint.save |
Save checkpoints |
onedropcore.checkpoint.list |
List checkpoints |
onedropcore.autotools |
Use AutoTools |
onedropcore.autominer |
Use AutoMiner |
onedropcore.autominer.tunnel |
Use tunnel mode |
onedropcore.web |
Access web-related commands |
Web Inventory Icons
The web inventory viewer supports item icons.
Place PNG files inside:
plugins/OneDropCore/web/assets/items/
Example:
diamond_sword.png
iron_pickaxe.png
dirt.png
golden_apple.png
If an icon is missing, the web viewer will show a clean fallback item box instead.
Safety Notes
OneDropCore is designed to be safe for real survival servers.
It avoids:
- Deleting important mobs by default
- Breaking protected blocks
- Running huge laggy loops
- Accessing Bukkit API from unsafe web threads
- Fake TPS boosting
- Fake network optimization
- Unsafe AutoMiner behavior
The plugin focuses on realistic server-side improvement, not fake performance numbers.
Important Limitation
A server-side Paper plugin cannot directly detect raw keyboard keys like J from a normal vanilla Minecraft client.
That means AutoMiner is toggled with:
/autominer
If you want a J key toggle, you need a separate client-side mod, macro, or launcher keybind that runs /autominer.
Requirements
- Paper server
- Java 21+
- Minecraft 1.20.6+ / 1.21.x recommended
Installation
- Download the plugin jar.
- Place it into your server’s
plugins folder.
- Restart the server.
- Edit the config if needed.
- Use:
/odc status
/odc web token
- Open the inventory viewer:
Perfect For
- Survival servers
- SMP servers
- Private friend servers
- Small-to-medium Paper servers
- Servers that need inventory recovery
- Servers that want admin web inventory viewing
- Servers that want safer automation tools
Summary
OneDropCore gives server owners a powerful set of tools in one plugin:
- Optimize server load
- Save player inventories
- Restore lost inventories
- View inventories from a browser
- Auto-switch tools
- Auto-mine safely
- Protect the server from overload
One plugin. Many useful systems. Built for practical Minecraft server management.
评论 0
登录后参与评分
还没有评论,来抢沙发吧