#QuickTrash
QuickTrash 是一款极简风格的 Paper 插件,为 Minecraft 服务器提供临时的垃圾桶功能。它非常适合那些需要一种简单方式来处理物品,而不希望使用复杂管理系统的服务器。
功能特性
- 18 格垃圾桶背包:通过
/trash 命令打开临时容器
- 自动清理:内容会在可配置的时间后删除(默认:30 秒)
- 即时删除:按住 Shift 点击即可无需确认地删除物品
- 贵重物品保护:附魔物品、命名物品以及配置中的材料需要双击确认
- bStats 集成:通过插件 ID 33565 进行匿名使用统计
- 可配置:超时时间、GUI 文本和贵重材料均可调整
安装
- 下载最新版本
- 将 JAR 文件放入
plugins/ 文件夹
- 重启服务器
- 在
plugins/QuickTrash/config.yml 中调整配置
- 再次重启服务器
用法
命令
| 命令 |
描述 |
权限 |
/trash |
打开垃圾桶背包 |
quicktrash.use |
/quicktrash version |
显示插件版本 |
— |
/quicktrash reload |
重新加载配置 |
quicktrash.admin |
工作原理
- 玩家输入
/trash 并获得一个 18 格的背包
- 物品被放入该背包(通过拖放)
- 当配置的时间过期或背包关闭时,物品将被永久删除
- 在背包中按住 Shift 点击物品会立即将其删除
- 贵重物品会显示确认提示框
配置
config.yml 文件会自动生成,包含以下选项:
trash:
auto-clear-seconds: 30
gui:
title: "&8QuickTrash"
info-name: "QuickTrash"
info-lore:
- "&7右键存储物品"
- "&7Shift+左键即时删除"
- "&7贵重物品需要确认"
- "&7自动清理剩余时间:{seconds}秒"
valuable-items:
materials:
- DIAMOND
- NETHERITE_INGOT
- GOLD_INGOT
- EMERALD
- ENCHANTED_GOLDEN_APPLE
- TOTEM_OF_UNDYING
confirmation-window: 3
要求
- PaperMC 26.3 或兼容分支(如 Purpur 等)
- Java 25
- 无需额外依赖
许可
本插件采用 MIT 许可证。详见 LICENCE 文件。
bStats
QuickTrash 会将匿名统计数据发送至 bStats。你可以在 plugins/bStats/config.yml 中禁用此功能。
#QuickTrash
QuickTrash is a minimalist Paper plugin that adds temporary trash functionality to Minecraft servers. It is ideal for servers that need a simple way to dispose of items without the complexity of a full management system.
Features
- 18-Slot Trash Inventory: Open via
/trash a temporary container
- Auto-cleanup: Contents are deleted after a configurable time (default: 30 seconds)
- Instant Delete: Shift-click deletes items without confirmation
- Valuable Item Protection: Enchanted, named items and configured materials require double-click confirmation
- bStats Integration: Anonymous usage tracking with plugin ID 33565
- Configurable: Timeout, GUI texts, and valuable materials are adjustable
Installation
- Download the latest release
- Place the JAR file in your
plugins/ folder
- Restart the server
- Adjust configuration in
plugins/QuickTrash/config.yml
- Restart the server again
Usage
Commands
| Command |
Description |
Permission |
/trash |
Opens the trash inventory |
quicktrash.use |
/quicktrash version |
Shows the plugin version |
— |
/quicktrash reload |
Reloads the configuration |
quicktrash.admin |
How It Works
- Players open
/trash and receive an 18-slot inventory
- Items are placed into this inventory (via drag & drop)
- After the configured time expires or when the inventory is closed, items are permanently deleted
- Shift-click on items in the inventory deletes them instantly
- Valuable items show a confirmation prompt
Configuration
The config.yml file is automatically generated and contains the following options:
trash:
auto-clear-seconds: 30
gui:
title: "&8QuickTrash"
info-name: "QuickTrash"
info-lore:
- "&7Right-click to store items"
- "&7Shift-click to delete instantly"
- "&7Valuable items require confirmation"
- "&7Time until auto-clear: {seconds}s"
valuable-items:
materials:
- DIAMOND
- NETHERITE_INGOT
- GOLD_INGOT
- EMERALD
- ENCHANTED_GOLDEN_APPLE
- TOTEM_OF_UNDYING
confirmation-window: 3
Requirements
- PaperMC 26.3 or compatible fork (Purpur, etc.)
- Java 25
- No additional dependencies required
License
This plugin is licensed under the MIT License. See LICENCE for details.
bStats
QuickTrash sends anonymous statistics to bStats. You can disable this in plugins/bStats/config.yml.
评论 0
登录后参与评分
还没有评论,来抢沙发吧