DropPrevention
一个基于 Spigot/Bukkit 的 Minecraft 服务器插件,允许玩家控制物品掉落功能。
描述
DropPrevention 是一款简单便捷的插件,赋予玩家启用或禁用物品掉落功能的能力。当掉落功能被禁用时,玩家将无法从背包中丢弃物品(即使有空余空间)。
特性
- ✅ 为每位玩家单独启用/禁用物品掉落
- ✅ 简单的
/drop 管理命令
- ✅ 重启服务器后保留设置
- ✅ 通过本地化文件自定义消息
- ✅ 支持 API 版本 1.8+
安装
- 下载最新版本的插件
- 将
DropPrevention.jar 文件放入服务器的 plugins 文件夹中
- 重启服务器
- 插件将自动创建必要的配置文件
用法
命令
/drop - 切换掉落状态(启用/禁用)
/drop on - 启用物品掉落
/drop off - 禁用物品掉落
/drop reloadLanguage - 重新加载本地化文件(需要 drop.admin 权限)
权限
drop.admin - 访问本地化重载命令(默认仅 OP 拥有)
配置
首次启动后,插件将创建以下文件:
lang.yml
包含可自定义插件消息的文件:
drop_on: "[DropPrevention] §a掉落已启用"
drop_off: "[DropPrevention] §c掉落已禁用"
drop_usage: "[DropPrevention] §c使用 /drop 快速切换模式,/drop on 启用或 /drop off 禁用"
no_permission: "[DropPrevention] §c你无权执行此命令"
storage.json
用于存储玩家设置的文件(自动创建,无需编辑)。
要求
- 基于 Spigot/Bukkit 的 Minecraft 服务器
- API 版本:1.8+
- Java 8 或更高版本
bStats
许可证
本项目采用 MIT 许可证授权 - 详情请参阅 LICENSE 文件。
支持
如果发现错误或有任何改进建议,请在仓库中创建 Issue。
致谢
感谢所有使用和支持本插件的用户!
DropPrevention
A plugin for Minecraft servers based on Spigot/Bukkit that allows players to control the ability to drop items.
Description
DropPrevention is a simple and convenient plugin that gives players the ability to enable and disable the item drop function. When drop is disabled, the player will not be able to drop items from their inventory (if there is free space).
Features
- ✅ Enable/disable item drop for each player individually
- ✅ Simple
/drop command for management
- ✅ Save settings between server restarts
- ✅ Customizable messages through localization file
- ✅ Support for API version 1.8+
Installation
- Download the latest version of the plugin
- Place the
DropPrevention.jar file in the plugins folder of your server
- Restart the server
- The plugin will automatically create the necessary configuration files
Usage
Commands
/drop - Toggle drop state (enable/disable)
/drop on - Enable item drop
/drop off - Disable item drop
/drop reloadLanguage - Reload localization file (requires drop.admin permission)
Permissions
drop.admin - Access to localization reload command (default only for OP)
Configuration
After the first launch, the plugin will create the following files:
lang.yml
File with customizable plugin messages:
drop_on: "[DropPrevention] §aDrop enabled"
drop_off: "[DropPrevention] §cDrop disabled"
drop_usage: "[DropPrevention] §cUse /drop - to quickly toggle mode, /drop on to enable or /drop off to disable"
no_permission: "[DropPrevention] §cYou don't have permission for this command"
storage.json
File for storing player settings (created automatically, no editing required).
Requirements
- Minecraft server based on Spigot/Bukkit
- API version: 1.8+
- Java 8 or higher
bStats
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you found a bug or have a suggestion for improvement, please create an Issue in the repository.
Acknowledgments
Thanks to everyone who uses and supports this plugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧