MyCommands v2.2
Vault Integration & Economy System
Economy integration for essential commands
What's New in v2.2
Complete Vault Integration
MyCommands now integrates with
Vault to bring a complete economy system to your server!
- Native Vault support - Compatible with all economy plugins (EssentialsX, CMI, etc.)
- Configurable pricing system - Set the cost for each action
- Rank-based discounts - VIP, MVP, and Admin with customizable percentages
- Economy messages - Clear transaction notifications
- Fully optional - Enable/disable economy as needed
Payable Actions
Code (Text):
economy:
enabled: true
prices:
home-set: 100.0 # Price to create a home
home-teleport: 50.0 # Price to teleport to a home
warp-creation: 500.0 # Price to create a warp (admin)
warp-teleport: 25.0 # Price to teleport to a warp
tpa-request: 10.0 # Price to send a TPA request
nick-change: 200.0 # Price to change nickname
Rank-Based Discount System
Reward your VIP players with automatic discounts!
Code (Text):
economy:
discounts:
vip: 0.5 # VIP pays 50% (permission: mycommands.economy.discount.vip)
mvp: 0.25 # MVP pays 25% (permission: mycommands.economy.discount.mvp)
admin: 0.0 # Admin = free (permission: mycommands.economy.discount.admin)
Special permissions:
- mycommands.economy.bypass - Everything free
- mycommands.economy.free - Everything free (alias)
- mycommands.economy.discount.vip - VIP discount
- mycommands.economy.discount.mvp - MVP discount
- mycommands.economy.discount.admin - Free (admin)
In-Game Messages
English & French included!
Code (Text):
economy:
insufficient-funds: "&c&l✗ Insufficient funds! &7(&eCost: &6{cost}&7, &eBalance: &6{balance}&7)"
charged: "&a&l✓ &6{amount} &a&lcharged from your account!"
refunded: "&a&l✓ &6{amount} &a&lrefunded to your account!"
action-free: "&a&l✓ Free action!"
action-costs: "&e Cost of this action: &6{cost}"
Installation
Basic Installation
1. Download MyCommands-2.2.jar
2. Place the file in
/plugins/ folder
3. Restart your server
4. Configure
config.yml as needed
To enable economy (optional)
1. Install
Vault
2. Install an economy plugin:
3. In
config.yml:
Code (Text):
economy:
enabled: true
4. Restart and configure prices
5. Set up discount permissions
[HR][/HR]
⚙️ Economy Configuration
Full Configuration Example
Code (Text):
# ========================================
# ECONOMY (v2.2 - VAULT)
# ========================================
economy:
# Enable economy system (requires Vault + economy plugin)
enabled: true
# Action prices
prices:
home-set: 100.0 # Price to create a home
home-teleport: 50.0 # Price to teleport to a home
warp-create: 500.0 # Price to create a warp (admin)
warp-teleport: 25.0 # Price to teleport to a warp
tpa-request: 10.0 # Price to send a TPA request
nick-change: 200.0 # Price to change nickname
# Permission-based discounts
# 1.0 = normal price, 0.5 = 50% discount, 0.0 = free
discounts:
vip: 0.5 # VIP pays 50% (permission: mycommands.economy.discount.vip)
mvp: 0.25 # MVP pays 25% (permission: mycommands.economy.discount.mvp)
admin: 0.0 # Admin = free (permission: mycommands.economy.discount.admin)
# Special permissions
# mycommands.economy.bypass = everything free
# mycommands.economy.free = everything free (alias)
Economy Permissions
Main Permissions
| Permission |
Description |
Default |
| mycommands.economy.bypass |
Everything free |
op |
| mycommands.economy.free |
Everything free (alias) |
op |
| mycommands.economy.discount.vip |
VIP discount (50%) |
false |
| mycommands.economy.discount.mvp |
MVP discount (75%) |
false |
| mycommands.economy.discount.admin |
Free (admin) |
op |
LuckPerms Configuration Example
Code (Text):
# VIP rank (50% discount)
/lp group vip permission set mycommands.economy.discount.vip true
# MVP rank (25% of price)
/lp group mvp permission set mycommands.economy.discount.mvp true
# Admin rank (free)
/lp group admin permission set mycommands.economy.discount.admin true
# Complete bypass
/lp user SkyNex permission set mycommands.economy.bypass true
Economy Commands
No new commands! Economy integrates automatically with existing commands:
- /sethome - Costs money if configured
- /home - May cost money per teleport
- /warp - Configurable price per teleport
- /setwarp - Creation price for admins
- /tpa - Configurable request sending cost
- /nick - Nickname change price
Players are automatically informed of costs before each action!
Usage Examples
Scenario 1: Normal Player
Code (Text):
Player > /sethome house
✓ $100.00 charged from your account!
✓ Home 'house' set at your location!
Player > /home house
✓ $50.00 charged from your account!
✓ Teleported to home 'house'!
Scenario 2: VIP Player (50% discount)
Code (Text):
VIPPlayer > /sethome house
✓ $50.00 charged from your account! (normal price: $100.00)
✓ Home 'house' set at your location!
VIPPlayer > /home house
✓ $25.00 charged from your account! (normal price: $50.00)
✓ Teleported to home 'house'!
Scenario 3: MVP Player (25% of price)
Code (Text):
MVPPlayer > /sethome house
✓ $25.00 charged from your account! (normal price: $100.00)
✓ Home 'house' set at your location!
MVPPlayer > /home house
✓ $12.50 charged from your account! (normal price: $50.00)
✓ Teleported to home 'house'!
Scenario 4: Admin (free)
Code (Text):
Admin > /sethome base
✓ Free action!
✓ Home 'base' set at your location!
Admin > /setwarp spawn
✓ Free action!
✓ Warp 'spawn' created successfully!
Scenario 5: Insufficient Funds
Code (Text):
Player > /sethome house
✗ Insufficient funds! (Cost: $100.00, Balance: $45.00)
# Player needs to earn $55 more before creating the home
[HR][/HR]
Support & Dependencies
Required Dependencies
- Spigot/Paper 1.20+ (API 1.20)
- Java 17 or higher
Optional Dependencies
- Vault - For economy system
- Economy plugin - EssentialsX, CMI, or any Vault-compatible plugin
Supported Versions
- ✓ Minecraft 1.20.x
- ✓ Minecraft 1.21.x
- ✓ Paper, Spigot, Purpur
- ✓ Java 17, 18, 19, 20, 21
[HR][/HR]
Upgrading from v2.1
Upgrading to v2.2 is
100% compatible!
Steps:
- Backup your /plugins/MyCommands/ folder
- Replace the .jar with MyCommands-2.2.jar
- Restart the server
- The plugin will automatically add the economy: section to config.yml
- Configure prices as needed
- Install Vault + economy plugin if desired
- Enable economy: economy.enabled: true
- Reload: /mycommands reload
No data loss - All your homes, warps, and configurations are preserved!
Full Changelog
Added
- Complete Vault integration for economy support
- Configurable economy system for all actions
- Per-action pricing (homes, warps, TPA, nicknames)
- Rank-based discount system (VIP, MVP, Admin)
- Localized economy messages (EN/FR)
- mycommands.economy.bypass permission for free everything
- Rank discount permissions
- EconomyManager to handle all transactions
- VaultIntegration for economy compatibility
- Automatic support for all Vault economy plugins
- Transaction confirmation messages
- Insufficient funds error messages
- bStats chart for economy usage
Improved
- Modular architecture for economy system
- Enhanced permission handling
- Clearer transaction messages
- Detailed startup logs
- Complete documentation
- LuckPerms/PermissionsEx compatibility
Fixed
- Proper VaultIntegration initialization
- Error handling when Vault is absent
- Compatibility with all economy plugins
- Missing localized messages
Download
[HR][/HR]
⭐ Like MyCommands?
Support the development!
⭐ Leave a 5-star review
Share the plugin
Report bugs
Suggest ideas
Thank you to all MyCommands users!
MyCommands v2.2 - Essential commands plugin
Developed with ❤️ by SkyNex
© 2024-2025 - All rights reserved