DropRateController
一款 Minecraft Spigot 插件,允许服务器管理员控制从生物和方块中掉落的物品掉落率。
功能特性
- 生物掉落控制:控制玩家击杀生物时物品的掉落率
- 方块掉落控制:控制玩家破坏方块时物品的掉落率
- 可配置掉落率:通过命令或配置文件设置 0% 到 100% 的掉落率
- 基于权限:使用权限来控制谁可以使用插件功能
- 易于配置:简单的 YAML 配置文件
要求
- Minecraft 服务器:1.13+ (Spigot/Paper)
- Java:17 或更高版本
安装
- 从 Releases 页面下载最新的
DropRateController-1.0-shaded.jar
- 将 JAR 文件放入服务器的
plugins 文件夹中
- 重启服务器或使用
/reload 命令
- 插件将在
plugins/DropRateController 文件夹中生成一个 config.yml 文件
配置
默认配置文件 (config.yml) 如下所示:
dropRate: 1.0
messages:
usage: "用法:/dropchance <get|set <值>>"
get: "当前掉落率:%.2f%%"
set: "掉落率已更新为 %.2f%%"
invalid: "无效值。请提供一个介于 0 到 100 之间的数字。"
range_error: "请输入一个介于 0 到 100 之间的数字。"
no_permission: "您没有权限使用此命令。"
配置选项
dropRate: 掉落率百分比(0.0 到 100.0)。默认为 1.0%
messages.*: 可自定义的各种插件响应消息
命令
/dropchance get
显示当前的掉落率百分比。
权限: dropratecontroller.use
/dropchance set <value>
将掉落率设置为指定的百分比(0-100)。
权限: dropratecontroller.use
示例:
/dropchance set 50 - 将掉落率设置为 50%
/dropchance set 0.5 - 将掉落率设置为 0.5%
权限
| 权限 |
描述 |
默认值 |
dropratecontroller.use |
允许使用 dropchance 命令 |
op |
工作原理
- 生物掉落物:当玩家击杀生物时,插件会根据配置的掉落率检查是否满足掉落条件。如果不满足,所有掉落物将被清除。
- 方块掉落物:当玩家破坏方块(拥有权限)时,插件会根据配置的掉落率控制物品是否掉落。
从源代码构建
- 克隆此仓库
- 确保已安装 Maven
- 运行
mvn clean package
- 编译后的 JAR 文件将位于
target 文件夹中
许可证
本项目为开源项目。详情请参阅许可证文件。
作者
koirdsuzu
DropRateController
DropRateController 是一个 Minecraft Spigot 插件,允许你控制从生物和方块掉落物品的概率。
功能
- 生物掉落控制:控制玩家击杀生物时的物品掉落率
- 方块掉落控制:控制玩家破坏方块时的物品掉落率
- 可配置掉落率:可通过命令或配置文件设置 0% 到 100% 的掉落率
- 基于权限:通过权限控制插件功能的使用
- 简单配置:使用简单的 YAML 配置文件
依赖项
- Minecraft 服务器:1.13 及以上版本 (Spigot/Paper)
- Java:17 及以上版本
安装
- 从发布页面下载最新的
DropRateController-1.0-shaded.jar
- 将 JAR 文件放入服务器的
plugins 文件夹
- 重启服务器或使用
/reload 命令
- 插件将在
plugins/DropRateController 文件夹中创建 config.yml 文件
配置
默认配置文件 (config.yml) 如下所示:
dropRate: 1.0
messages:
usage: "Usage: /dropchance <get|set <value>>"
get: "Current drop rate: %.2f%%"
set: "Drop rate updated to %.2f%%"
invalid: "Invalid value. Please provide a number between 0 and 100."
range_error: "Please enter a number between 0 and 100."
no_permission: "You do not have permission to use this command."
配置选项
dropRate:掉落率的百分比值 (0.0 到 100.0)。默认为 1.0%
messages.*:可自定义的各种插件响应消息
命令
/dropchance get
显示当前掉落率。
权限: dropratecontroller.use
/dropchance set <value>
将掉落率设置为指定的百分比 (0-100)。
权限: dropratecontroller.use
示例:
/dropchance set 50 - 将掉落率设置为 50%
/dropchance set 0.5 - 将掉落率设置为 0.5%
权限
| 权限 |
说明 |
默认值 |
dropratecontroller.use |
允许访问 dropchance 命令 |
op |
工作原理
- 生物掉落:当玩家击杀生物时,插件会根据设定的掉落率检查掉落条件是否满足。如果条件不满足,所有掉落物将被清除。
- 方块掉落:当玩家破坏方块时(拥有权限),插件会根据设定的掉落率控制物品是否掉落。
从源代码构建
- 克隆本仓库
- 确保已安装 Maven
- 运行
mvn clean package
- 编译后的 JAR 文件位于
target 文件夹中
许可证
本项目为开源项目。有关详细信息,请查看许可证文件。
作者
koirdsuzu
DropRateController
A Minecraft Spigot plugin that allows server administrators to control the drop rate of items from mobs and blocks.
Features
- Mob Drop Control: Control the drop rate of items when mobs are killed by players
- Block Drop Control: Control the drop rate of items when blocks are broken by players
- Configurable Drop Rate: Set drop rates from 0% to 100% via command or config file
- Permission-Based: Uses permissions to control who can use the plugin features
- Easy Configuration: Simple YAML configuration file
Requirements
- Minecraft Server: 1.13+ (Spigot/Paper)
- Java: 17 or higher
Installation
- Download the latest
DropRateController-1.0-shaded.jar from the releases
- Place the JAR file in your server's
plugins folder
- Restart your server or use
/reload command
- The plugin will create a
config.yml file in the plugins/DropRateController folder
Configuration
The default configuration file (config.yml) looks like this:
dropRate: 1.0
messages:
usage: "Usage: /dropchance <get|set <value>>"
get: "Current drop rate: %.2f%%"
set: "Drop rate updated to %.2f%%"
invalid: "Invalid value. Please provide a number between 0 and 100."
range_error: "Please enter a number between 0 and 100."
no_permission: "You do not have permission to use this command."
Configuration Options
dropRate: The drop rate percentage (0.0 to 100.0). Default is 1.0%
messages.*: Customizable messages for various plugin responses
Commands
/dropchance get
Displays the current drop rate percentage.
Permission: dropratecontroller.use
/dropchance set <value>
Sets the drop rate to the specified percentage (0-100).
Permission: dropratecontroller.use
Examples:
/dropchance set 50 - Sets drop rate to 50%
/dropchance set 0.5 - Sets drop rate to 0.5%
Permissions
| Permission |
Description |
Default |
dropratecontroller.use |
Allows access to the dropchance command |
op |
How It Works
- Mob Drops: When a player kills a mob, the plugin checks if the drop condition is met based on the configured drop rate. If not met, all drops are cleared.
- Block Drops: When a player breaks a block (with permission), the plugin controls whether items drop based on the configured drop rate.
Building from Source
- Clone this repository
- Make sure you have Maven installed
- Run
mvn clean package
- The compiled JAR will be in the
target folder
License
This project is open source. Please check the license file for more details.
Author
koirdsuzu
DropRateController
Mobやブロックからアイテムがドロップする確率を制御できるMinecraft Spigotプラグインです。
機能
- Mobドロップ制御: プレイヤーがMobを倒した際のアイテムドロップ率を制御
- ブロックドロップ制御: プレイヤーがブロックを破壊した際のアイテムドロップ率を制御
- 設定可能なドロップ率: コマンドまたは設定ファイルで0%から100%のドロップ率を設定可能
- 権限ベース: プラグイン機能の使用を権限で制御
- 簡単な設定: シンプルなYAML設定ファイル
必要要件
- Minecraftサーバー: 1.13以上 (Spigot/Paper)
- Java: 17以上
インストール
- 最新の
DropRateController-1.0-shaded.jar をリリースからダウンロード
- JARファイルをサーバーの
plugins フォルダに配置
- サーバーを再起動するか
/reload コマンドを使用
- プラグインは
plugins/DropRateController フォルダに config.yml ファイルを作成します
設定
デフォルトの設定ファイル (config.yml) は以下のようになっています:
dropRate: 1.0
messages:
usage: "Usage: /dropchance <get|set <value>>"
get: "Current drop rate: %.2f%%"
set: "Drop rate updated to %.2f%%"
invalid: "Invalid value. Please provide a number between 0 and 100."
range_error: "Please enter a number between 0 and 100."
no_permission: "You do not have permission to use this command."
設定オプション
dropRate: ドロップ率のパーセンテージ (0.0 から 100.0)。デフォルトは 1.0%
messages.*: 各種プラグイン応答のカスタマイズ可能なメッセージ
コマンド
/dropchance get
現在のドロップ率を表示します。
権限: dropratecontroller.use
/dropchance set <value>
ドロップ率を指定したパーセンテージ (0-100) に設定します。
権限: dropratecontroller.use
例:
/dropchance set 50 - ドロップ率を50%に設定
/dropchance set 0.5 - ドロップ率を0.5%に設定
権限
| 権限 |
説明 |
デフォルト |
dropratecontroller.use |
dropchanceコマンドへのアクセスを許可 |
op |
動作の仕組み
- Mobドロップ: プレイヤーがMobを倒した際、プラグインは設定されたドロップ率に基づいてドロップ条件が満たされているかチェックします。条件が満たされない場合、すべてのドロップがクリアされます。
- ブロックドロップ: プレイヤーがブロックを破壊した際(権限がある場合)、プラグインは設定されたドロップ率に基づいてアイテムがドロップするかどうかを制御します。
ソースからビルド
- このリポジトリをクローン
- Mavenがインストールされていることを確認
mvn clean package を実行
- コンパイルされたJARは
target フォルダにあります
ライセンス
このプロジェクトはオープンソースです。詳細についてはライセンスファイルを確認してください。
作者
koirdsuzu
评论 0
登录后参与评分
还没有评论,来抢沙发吧