Actions -
Minecraft

Configure actions and commands for Minecraft servers

Overview

Minecraft servers support console commands that can be executed when players make donations. These commands can give items, money, permissions, and more depending on your server setup and plugins.

Console Command

Execute server console commands when a donation is made. The %player% variable will be replaced with the player's username.

Basic Commands

Code
// Give player items
give %player% diamond 10
give %player% iron_ingot 64
give %player% gold_ingot 32

// Give player experience
xp 1000L %player%

// Teleport player
tp %player% 0 100 0

Economy Commands (Vault/Economy)

Code
// Give player money
eco give %player% 10000

// Set player money
eco set %player% 50000

// Add money to player
eco add %player% 25000

Permission Commands (LuckPerms/PermissionsEx)

Code
// Add permission to player
lp user %player% permission set vip true

// Add player to group
lp user %player% parent add vip

// Set player's primary group
lp user %player% parent set vip

WorldGuard Commands

Code
// Add player to region
rg addmember vip %player%

// Remove player from region
rg removemember vip %player%

Essentials Commands

Code
// Give player items with enchantments
give %player% diamond_sword 1 0 {ench:[{id:16,lvl:5}]}

// Set player's home
sethome %player% vip_home

// Give player fly permission
essentials:fly %player%

Multi-World Commands

Code
// Teleport player to specific world
mvtp %player% vip_world

// Give player items in specific world
world %player% vip_world
give %player% diamond_block 5

Custom Plugin Commands

Code
// Jobs plugin
jobs join %player% miner

// McMMO plugin
mcmmo admin %player% addlevels mining 10

// GriefPrevention plugin
gp give %player% 1000

Advanced Command Examples

Kit Commands

Code
// Give player a kit
kit vip %player%

// Give player multiple kits
kit starter %player%
kit tools %player%
kit armor %player%

Rank Commands

Code
// Set player rank
rank set %player% vip

// Add player to multiple groups
lp user %player% parent add vip
lp user %player% parent add donator

Server Commands

Code
// Broadcast message
broadcast %player_name% has donated and received VIP status!

// Send message to player
msg %player% Thank you for your donation!

// Execute multiple commands
give %player% diamond 10
eco give %player% 5000
lp user %player% parent add vip

Command Variables

Available variables for Minecraft commands:

  • %player% - Player's username
  • %player_name% - Player's display name
  • %package_name% - Name of the purchased package
  • %package_price% - Price paid for the package
  • %transaction_id% - Unique transaction identifier

Best Practices

  • Test Commands: Always test commands on a test server first
  • Use Variables: Utilize variables to make commands dynamic
  • Check Permissions: Ensure the server has permission to execute commands
  • Plugin Compatibility: Make sure required plugins are installed
  • Command Syntax: Use correct command syntax for your server version

Troubleshooting

Common issues and solutions:

  • Command not working: Check if the plugin is installed and enabled
  • Player not found: Ensure the player is online when the command executes
  • Permission denied: Check server console permissions
  • Invalid syntax: Verify command syntax for your server version
Note: Some commands may require specific plugins to be installed. Check your server's plugin list to ensure compatibility.