
CommandFee
Charge Players to Run Commands
Автор: MasterNutto970обновлён 17 июн. 2025 г.
Экономика
Описание
CommandFee – Charge Players to Run Commands CommandFee lets server administrators assign custom fees for any command, ensuring players pay a virtual economy cost before the command runs. Fully compatible with Vault and popular economy plugins (EssentialsX, etc.).
Features
- Per-command dynamic pricing via config.yml
- Universal billing using Vault supports all real-money economy plugins
- Applies to any command, including vanilla commands and those from other plugins or even a non-existent command
- Safe execution logic:
- Cancels command if player lacks funds
- Charges the correct amount and notifies the player
- Self-disables gracefully if Vault or any leveraging economy plugin is missing avoids startup errors
Setup / Installation
- drop .jar into plugins/
- Ensure Vault + an economy plugin (e.g., EssentialsX Economy) are installed
- Restart server to generate default config.yml
- Edit pricing
- Use /commandfee reload (permission: commandfee.admin) after edits
Admin Benefits
- Flexible monetization: monetize valuable commands (e.g., warps, homes, kits)
- No hardcoding: easy to adjust prices anytime
- Compatible with any Vault-hooked economy plugin
- Safe default behavior: disables itself if prerequisites aren’t met
Requirements
- Vault (required)
- Any Vault-supported Economy plugin (e.g., EssentialsX Economy, iConomy, BOSEconomy)
Dev Note
- Charges apply to all player-issued commands, regardless of whether the command actually exists. Even typing /nonexistent will trigger a fee if listed in config.yml.
- Permissions are not checked per command — players still pay even if they lack permission to execute that command. The plugin purely deducts based on the fee configuration, not access level.
- Only intercepts real player-typed commands. Commands run via console, NPCs, or triggered by other plugins (e.g., through API calls) are not charged.
Галерея
Последние версии
Все версии →release
CommandFee 1.1
1.117 июн. 2025 г.59Minecraft: 1.21.5spigot
Что нового
**Bug Fixes & Error Handle Enhancements**
- **Prevents plugin crashes** during initialization by verifying Vault and economy plugin presence before registering listeners and commands
- **Graceful failure logic**: plugin now auto-disables when setup requirements aren't met (no Vault or economy provider), preventing null-pointer exceptions or runtime errors
- **Enhanced error messaging**: detailed logs are output to console during setup failure
release
CommandFee 1.0
1.017 июн. 2025 г.38Minecraft: 1.21.5spigot
Что нового
V1.0 Release Version
