Skip to main content

Admin Commands

Administrative commands for managing SigmaOrders.

Admin Commands

/orders reload

Permission: sigmaorders.admin (default: op)
Description: Reload plugin configuration

Usage:

/orders reload

Behavior:

  • Reloads config.yml and messages.yml
  • Applies new settings immediately
  • Some settings may require server restart

Output:

[SigmaOrders] ✓ Configuration reloaded successfully.

Note: Some settings (like database type) require a full server restart.


/orders debug [on/off/status]

Permission: sigmaorders.admin (default: op)
Description: Toggle debug mode

Usage:

/orders debug on      # Enable debug
/orders debug off # Disable debug
/orders debug status # Show current status
/orders debug # Toggle debug

Behavior:

  • Enables/disables debug logging
  • Shows detailed operation logs
  • Useful for troubleshooting

Output:

[SigmaOrders] Debug mode enabled.
[SigmaOrders] Debug mode disabled.
[SigmaOrders] Debug mode: enabled

/orders admin delete <id>

Permission: sigmaorders.admin.delete (default: op)
Description: Delete an order (admin only)

Usage:

/orders admin delete <id>

Arguments:

  • <id> - Order ID (integer)

Examples:

/orders admin delete 1
/orders admin delete 42

Behavior:

  • Permanently deletes the order
  • Removes from database
  • No refund (use refund command first if needed)

Warning: This action is irreversible!

Output:

[SigmaOrders] ✓ Order #1 has been deleted.

/orders admin list [page]

Permission: sigmaorders.admin (default: op)
Description: View all orders (admin view)

Usage:

/orders admin list
/orders admin list 2

Arguments:

  • [page] - Page number (optional, default: 1)

Behavior:

  • Shows all orders (including completed/cancelled)
  • Admin-only view with additional details
  • Opens admin GUI

Example:

/orders admin list
/orders admin list 1

/orders stats [player]

Permission: sigmaorders.stats (self) or sigmaorders.stats.others (others)
Description: View order statistics

Usage:

/orders stats              # Your stats
/orders stats PlayerName # Other player's stats

Arguments:

  • [player] - Player name (optional, requires sigmaorders.stats.others)

Examples:

/orders stats
/orders stats Notch

Output:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Order Statistics
Player: Notch
Orders Created: 15
Orders Fulfilled: 8
Items Delivered: 320
Total Spent: $15,000.00
Total Earned: $8,500.00
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Statistics Shown:

  • Orders Created
  • Orders Fulfilled
  • Items Delivered
  • Total Spent
  • Total Earned

Admin GUI

/orders admin

Permission: sigmaorders.admin (default: op)
Description: Open admin panel GUI

Usage:

/orders admin

Behavior:

  • Opens admin management GUI
  • Access to all orders
  • Order management tools
  • Blacklist management (if implemented)

Admin Workflows

Troubleshooting Order Issues

# Enable debug
/orders debug on

# View all orders
/orders admin list

# Check specific order
/orders view <id>

# Delete problematic order
/orders admin delete <id>

# Disable debug
/orders debug off

Monitoring Server Activity

# View player stats
/orders stats PlayerName

# Check all orders
/orders admin list

# Reload config after changes
/orders reload

Managing Problem Orders

# View order details
/orders view <id>

# Delete if necessary
/orders admin delete <id>

# Check logs for issues
# (use debug mode for detailed logs)

Permission Requirements

CommandPermissionDefault
/orders reloadsigmaorders.adminop
/orders debugsigmaorders.adminop
/orders admin deletesigmaorders.admin.deleteop
/orders admin listsigmaorders.adminop
/orders stats (self)sigmaorders.statstrue
/orders stats (others)sigmaorders.stats.othersop

Best Practices

  1. Use Debug Mode Sparingly: Debug logs can be verbose
  2. Backup Before Deletion: Always backup before deleting orders
  3. Monitor Statistics: Use stats to monitor server economy
  4. Test Config Changes: Test reloaded config before production
  5. Document Actions: Keep notes of admin actions for troubleshooting

Troubleshooting

Reload Not Working

Check:

  1. Config file syntax is valid YAML
  2. No errors in console after reload
  3. Some settings require server restart

Debug Mode Too Verbose

Solution: Disable debug mode when not needed:

/orders debug off

Can't Delete Order

Check:

  1. Order ID is correct
  2. You have sigmaorders.admin.delete permission
  3. Order exists in database

Next Steps