HomeJavaModsDropRateController

DropRateController

A Minecraft Spigot plugin that allows server administrators to control the drop rate of items from mobs and blocks.

Features

Requirements

Installation

  1. Download the latest DropRateController-1.0-shaded.jar from the releases
  2. Place the JAR file in your server's plugins folder
  3. Restart your server or use /reload command
  4. 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

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:

Permissions

Permission Description Default
dropratecontroller.use Allows access to the dropchance command op

How It Works

Building from Source

  1. Clone this repository
  2. Make sure you have Maven installed
  3. Run mvn clean package
  4. 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プラグインです。

機能

必要要件

インストール

  1. 最新の DropRateController-1.0-shaded.jar をリリースからダウンロード
  2. JARファイルをサーバーの plugins フォルダに配置
  3. サーバーを再起動するか /reload コマンドを使用
  4. プラグインは 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."

設定オプション

コマンド

/dropchance get

現在のドロップ率を表示します。

権限: dropratecontroller.use

/dropchance set <value>

ドロップ率を指定したパーセンテージ (0-100) に設定します。

権限: dropratecontroller.use

:

権限

権限 説明 デフォルト
dropratecontroller.use dropchanceコマンドへのアクセスを許可 op

動作の仕組み

ソースからビルド

  1. このリポジトリをクローン
  2. Mavenがインストールされていることを確認
  3. mvn clean package を実行
  4. コンパイルされたJARは target フォルダにあります

ライセンス

このプロジェクトはオープンソースです。詳細についてはライセンスファイルを確認してください。

作者

koirdsuzu

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more