Troubleshooting
Troubleshooting
Section titled “Troubleshooting”This guide helps you resolve common issues with the Custom Commands plugin. If you encounter problems not covered here, join our Discord server for support.
Common Issues
Section titled “Common Issues”Plugin Won’t Load
Section titled “Plugin Won’t Load”Problem
Section titled “Problem”The plugin doesn’t appear in /plugins list or shows errors in console.
Solutions
Section titled “Solutions”-
Check Server Software
- Ensure you’re using Paper, Spigot, or Bukkit
- Verify your server software is up to date
- Check if you’re using the correct version
-
Check Java Version
- Custom Commands requires Java 17 or higher
- Update Java if necessary
- Verify Java version:
java -version
-
Check Plugin File
- Ensure the
.jarfile is in thepluginsfolder - Verify the file isn’t corrupted
- Download the plugin again if needed
- Ensure the
-
Check Console Errors
- Look for error messages in server console
- Check for missing dependencies
- Verify plugin compatibility
Error Messages
Section titled “Error Messages”[ERROR] Could not load 'plugins/CustomCommands-1.0.0.jar' in folder 'plugins'Solution: Check if the file is corrupted or incompatible with your server version.
[ERROR] java.lang.UnsupportedClassVersionErrorSolution: Update Java to version 17 or higher.
Commands Not Working
Section titled “Commands Not Working”Problem
Section titled “Problem”Custom commands don’t respond when used.
Solutions
Section titled “Solutions”-
Check Plugin Status
Terminal window /pluginsEnsure Custom Commands is enabled.
-
Check Command Configuration
- Verify commands are enabled in
config.yml - Check for YAML syntax errors
- Use
/customcommands reloadafter changes
- Verify commands are enabled in
-
Check Permissions
- Verify players have correct permissions
- Check permission plugin is working
- Test with OP permissions
-
Check Console for Errors
- Look for error messages in console
- Check log files for detailed errors
- Enable debug mode for more information
Debug Steps
Section titled “Debug Steps”# Enable debug mode# In config.yml:debug: enabled: true console: true file: true
# Reload configuration/customcommands reload
# Test commands/discord/website/rulesPermission Issues
Section titled “Permission Issues”Problem
Section titled “Problem”Players get “no permission” messages.
Solutions
Section titled “Solutions”-
Check Permission Nodes
- Verify permission format:
customcommands.commandname - Check for typos in permission names
- Ensure permissions are set correctly
- Verify permission format:
-
Check Permission Plugin
- Verify your permission plugin is working
- Test with
/lp user <player> permission check customcommands.discord - Check for conflicting permission plugins
-
Check Player Permissions
- Ensure player has the correct permissions
- Check group memberships
- Verify permission inheritance
-
Test with OP
- Give player OP temporarily
- Test if commands work with OP
- This helps isolate permission issues
Permission Examples
Section titled “Permission Examples”# With LuckPerms/lp user PlayerName permission set customcommands.discord true
# With PermissionsEx/pex user PlayerName add customcommands.discord
# With GroupManager/manuaddp PlayerName customcommands.discordConfiguration Errors
Section titled “Configuration Errors”Problem
Section titled “Problem”Configuration files have errors or won’t load.
Solutions
Section titled “Solutions”-
Check YAML Syntax
- Verify proper indentation (use spaces, not tabs)
- Check for missing quotes around strings
- Ensure proper list formatting
-
Validate Configuration
- Use online YAML validators
- Check for duplicate keys
- Verify proper structure
-
Backup and Restore
- Keep backups of working configurations
- Restore from backup if needed
- Test changes incrementally
-
Check File Permissions
- Ensure server can read/write config files
- Check file ownership
- Verify file permissions
Common YAML Errors
Section titled “Common YAML Errors”# Wrong - missing quotespermission: customcommands.discord
# Correctpermission: "customcommands.discord"
# Wrong - incorrect indentationcommands:discord: permission: "customcommands.discord"
# Correctcommands: discord: permission: "customcommands.discord"Reload Issues
Section titled “Reload Issues”Problem
Section titled “Problem”/customcommands reload fails or doesn’t work.
Solutions
Section titled “Solutions”-
Check Configuration Files
- Verify
config.ymlandmessages.ymlare valid - Check for syntax errors
- Ensure files are not corrupted
- Verify
-
Check File Permissions
- Ensure server can read config files
- Check file ownership
- Verify write permissions
-
Check Console for Errors
- Look for error messages during reload
- Check log files for details
- Enable debug mode for more information
-
Restart Server
- If reload continues to fail, restart the server
- This will load the configuration from scratch
- Check if the issue persists
Reload Debug
Section titled “Reload Debug”# Enable debug modedebug: enabled: true console: true file: true
# Try reload/customcommands reload
# Check console output# Look for error messagesConsole Command Issues
Section titled “Console Command Issues”Problem
Section titled “Problem”Console commands in custom commands don’t execute.
Solutions
Section titled “Solutions”-
Check Command Syntax
- Verify console command format
- Check for proper variable usage
- Ensure commands are valid
-
Check Variables
- Verify variable names:
{player},{world},{x},{y},{z} - Check for typos in variable names
- Test with simple commands first
- Verify variable names:
-
Check Permissions
- Console commands run with console privileges
- Verify the commands are valid
- Test commands manually in console
-
Check Command Format
- Ensure proper JSON format for complex commands
- Check for proper escaping
- Test with simple commands first
Console Command Examples
Section titled “Console Command Examples”# Simple commandconsole_commands: - "say {player} used the command!"
# JSON commandconsole_commands: - "tellraw {player} [\"\",{\"text\":\"Hello \",\"color\":\"yellow\"},{\"text\":\"{player}\",\"color\":\"green\"}]"
# Effect commandconsole_commands: - "effect give {player} minecraft:glowing 10 1 true"Performance Issues
Section titled “Performance Issues”Problem
Section titled “Problem”Plugin causes server lag or performance issues.
Solutions
Section titled “Solutions”-
Check Console Commands
- Limit the number of console commands
- Avoid heavy operations in console commands
- Use appropriate cooldowns
-
Check Cooldowns
- Set appropriate cooldowns for commands
- Prevent command spam
- Use longer cooldowns for heavy commands
-
Check Debug Mode
- Disable debug mode in production
- Reduce logging if not needed
- Check log file sizes
-
Check Resource Usage
- Monitor server resources
- Check for memory leaks
- Optimize configuration
Performance Tips
Section titled “Performance Tips”# Disable debug in productiondebug: enabled: false console: false file: false
# Set appropriate cooldownscooldown: 5 # 5 second cooldown
# Limit console commandsconsole_commands: - "say {player} used command" # Simple command # Avoid heavy operationsDebug Information
Section titled “Debug Information”Enable Debug Mode
Section titled “Enable Debug Mode”# In config.ymldebug: enabled: true console: true file: trueCheck Logs
Section titled “Check Logs”plugins/CustomCommands/logs/latest.logTest Commands
Section titled “Test Commands”# Test main command/customcommands help
# Test reload/customcommands reload
# Test custom commands/discord/website/rulesCheck Permissions
Section titled “Check Permissions”# With LuckPerms/lp user <player> permission check customcommands.discord
# With PermissionsEx/pex user <player> check customcommands.discordGetting Help
Section titled “Getting Help”Before Asking for Help
Section titled “Before Asking for Help”- Check this guide - Look for your issue here first
- Enable debug mode - Get detailed error information
- Check logs - Look for error messages
- Test with OP - See if it’s a permission issue
- Try reload - Use
/customcommands reload
When Asking for Help
Section titled “When Asking for Help”Provide this information:
- Server software and version (Paper, Spigot, etc.)
- Java version (
java -version) - Plugin version (from
/customcommands version) - Error messages (from console and logs)
- Configuration (relevant parts of config.yml)
- Steps to reproduce (what you did to cause the issue)
Support Channels
Section titled “Support Channels”- Discord Server: https://discord.gg/2qCMn6KHj4
- Bug Reports: Use the bug report channel in Discord
- Feature Requests: Use the feature request channel in Discord
Useful Commands
Section titled “Useful Commands”# Check plugin status/plugins
# Check version/customcommands version
# Reload configuration/customcommands reload
# Check help/customcommands help
# Check support/customcommands supportPrevention Tips
Section titled “Prevention Tips”Best Practices
Section titled “Best Practices”- Test Changes - Always test changes on a test server first
- Backup Configs - Keep backups of working configurations
- Use Version Control - Track configuration changes
- Monitor Logs - Regularly check log files
- Update Regularly - Keep the plugin updated
Configuration Tips
Section titled “Configuration Tips”- Use Comments - Add comments to explain complex configurations
- Validate YAML - Use YAML validators before applying changes
- Test Incrementally - Make small changes and test each one
- Document Changes - Keep track of what you changed and why
Maintenance
Section titled “Maintenance”- Regular Backups - Backup configurations regularly
- Log Rotation - Monitor log file sizes
- Performance Monitoring - Watch for performance issues
- Security Updates - Keep server and plugins updated
title: Troubleshooting
Quick Reference
Section titled “Quick Reference”Essential Commands
Section titled “Essential Commands”/customcommands help # Show help/customcommands reload # Reload configuration/customcommands version # Show version/customcommands support # Show support infoFile Locations
Section titled “File Locations”plugins/CustomCommands/config.yml # Main configurationplugins/CustomCommands/messages.yml # Messagesplugins/CustomCommands/logs/ # Log filesCommon Issues
Section titled “Common Issues”- Plugin won’t load → Check Java version and server software
- Commands not working → Check permissions and configuration
- Permission denied → Check permission nodes and plugin
- Reload fails → Check configuration syntax and file permissions
Need more help? Join our Discord server for support and updates!