πŸ”§Troubleshooting Guide

Solutions to common problems and errors with BlackMarket.

Quick Diagnostics

Step 1: Check Plugin Status

/plugins

BlackMarket should be GREEN

Step 2: Check Plugin Info

/bma info

Verify all systems show correctly:

  • Version

  • Economy provider

  • Database type

  • Server type

Step 3: Enable Debug Mode

/bma debug

Check console for detailed logs.

Step 4: Check Logs

Look for [BlackMarket] entries with errors.


Installation Issues

Plugin Won't Load

Symptoms:

  • Plugin shows RED in /plugins

  • Errors on server startup

  • Commands don't work

Solutions:

  1. Check server version:

  1. Check dependencies:

  1. Check for errors:

  1. Verify JAR file:

  1. Check permissions:


Configuration Issues

YAML Syntax Errors

Symptoms:

  • Plugin won't reload

  • Failed to load configuration

  • Items not appearing

Solutions:

  1. Validate YAML syntax:

  2. Common mistakes:

  1. Reset to default:

Config Not Updating

Problem: Changes don't apply after editing

Solutions:

  1. Reload config:

  1. Check file saved:

    • Ensure you saved the file

    • Check file timestamp

  2. Clear server cache:

  1. Verify correct file:


Economy Issues

No Economy Found

Error: No economy plugin found!

Solutions:

  1. Install economy plugin:

    • Download Vault + EssentialsX

    • OR PlayerPoints

    • OR CoinsEngine

    • Place in plugins folder

  2. Check loaded:

  1. Restart server:

  1. Verify detection:

Wrong Economy Used

Problem: Item charges from wrong economy

Solutions:

  1. Specify economy type:

  1. Check default:

  1. Verify available:

Insufficient Funds Not Working

Problem: Can buy with $0

Solutions:

  1. Check price set:

  1. Verify economy plugin works:

  1. Test economy:


Database Issues

Database Connection Failed

Error: Failed to connect to database!

For SQLite:

  1. Check file permissions:

  1. Check disk space:

  1. Delete and regenerate:

For MySQL:

  1. Test connection:

  1. Check credentials:

  1. Verify MySQL running:

  1. Check firewall:

  1. Grant permissions:

Database Locked (SQLite)

Error: Database is locked

Solutions:

  1. Stop server completely:

  1. Check processes:

  1. Restart server:


GUI Issues

Items Not Showing

Problem: Market GUI opens but no items appear

Solutions:

  1. Check items configured:

  1. Verify slots configured:

  1. Check items-per-reset:

  1. Force market reset:

  1. Check item chances:

GUI Buttons Not Working

Problem: Clicking buttons does nothing

Solutions:

  1. Check action configured:

  1. Verify slot correct:

  1. Test in vanilla:

    • Remove other GUI plugins

    • Test if issue persists

  2. Check for conflicts:

Wrong GUI Size

Problem: GUI too big/small

Solutions:

  1. Check size setting:

  1. Ensure multiple of 9:

  1. Adjust market slots:


Purchase Issues

Can't Buy Items

Problem: Clicking items does nothing

Solutions:

  1. Check permission:

  1. Check item permission:

  1. Check stock:

  1. Check cooldown:

  1. Check one-time:

Purchase But No Item

Problem: Money deducted but no item received

Solutions:

  1. Check command:

  1. Test command manually:

  1. Check console errors:

  1. Verify command format:

Infinite Purchases

Problem: Can buy item repeatedly without cooldown

Solutions:

  1. Set cooldown:

  1. Set one-time:

  1. Set stock:


Redis Issues

Redis Connection Failed

Error: Failed to initialize Redis

Solutions:

  1. Check Redis running:

  1. Test connection:

  1. Check password:

  1. Check firewall:

  1. Verify port:

Cross-Server Not Syncing

Problem: Changes on one server don't appear on others

Solutions:

  1. Check unique server IDs:

  1. Verify all connected:

  1. Check same Redis instance:

  1. Enable debug:


Message Issues

Colors Not Showing

Problem: Messages show <red> literally

Solutions:

  1. Enable MiniMessage:

  1. Reload messages:

  1. Use legacy codes instead:

Prefix Not Working

Problem: %prefix% shows literally in messages

Solutions:

  1. Quote messages:

  1. Define prefix:

  1. Reload:

Language File Not Loading

Problem: Changed language but messages stay English

Solutions:

  1. Check filename:

  1. Enable localization:

  1. Reload:


Performance Issues

Lag on Market Open

Problem: Server lags when opening GUI

Solutions:

  1. Reduce items-per-reset:

  1. Disable effects:

  1. Use MySQL instead of SQLite:

  1. Optimize database:

Slow Database Queries

Problem: Delayed responses to commands

Solutions:

  1. Check database size:

  1. Optimize tables:

  1. Add indexes (for large databases):

  1. Clean old data:


Common Error Messages

ClassNotFoundException

Error: java.lang.ClassNotFoundException: ...

Cause: Missing dependency

Solution: Install required plugin (Vault, PlayerPoints, etc.)

NullPointerException

Error: java.lang.NullPointerException at ...

Causes:

  1. Invalid item configuration

  2. Missing required field

  3. Corrupted database

Solutions:

  1. Check item has all required fields

  2. Validate YAML syntax

  3. Regenerate database

IllegalArgumentException

Error: java.lang.IllegalArgumentException: Invalid material

Cause: Invalid material name

Solution: Fix material name


Getting Help

Before Asking for Support

  1. βœ… Check this troubleshooting guide

  2. βœ… Read the FAQ

  3. βœ… Enable debug mode: /bma debug

  4. βœ… Check logs/latest.log for errors

  5. βœ… Test with minimal plugins (disable others)

  6. βœ… Verify you're on latest BlackMarket version

Providing Information

When asking for help, include:

  1. Server information:

  1. Plugin version:

  1. Error logs:

  1. Configuration:

  1. Steps to reproduce:

  • What did you do?

  • What happened?

  • What did you expect?

Support Channels


Next Steps

Last updated