-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting.md
- Plugin not in
/pluginslist - No folder created
- Console shows errors
Error:
java.lang.UnsupportedClassVersionError: com/myplugin/SpawnChestPlugin
has been compiled by a more recent version of the Java Runtime
Fix:
# Check Java version
java -version
# Should show Java 17 or newer
# If older, update JavaDownload Java 17+:
- OpenJDK: https://adoptium.net/
- Oracle JDK: https://www.oracle.com/java/
Error:
Could not load 'plugins/SpawnChestPlugin.jar'
Check server type:
/version
Should show:
- ✅ Spigot 1.18+
- ✅ Paper 1.18+
- ✅ Purpur 1.18+
- ❌ CraftBukkit (outdated)
- ❌ Vanilla (no plugin support)
Fix: Upgrade to Paper (recommended):
- Download: https://papermc.io/downloads
Symptoms:
- File size is 0 KB
- Download incomplete
Fix:
- Delete current JAR
- Re-download from official source
- Verify file size (should be 500KB+)
- Check MD5/SHA hash if provided
Linux/Unix error:
Permission denied: SpawnChestPlugin.jar
Fix:
# Navigate to plugins folder
cd /path/to/server/plugins
# Set correct permissions
chmod 644 SpawnChestPlugin*.jar
# Set folder permissions
chmod 755 SpawnChestPlugin//nextchest
If shows time:
- ✅ Plugin working
- ⏰ Wait for timer
- Or use
/chestnowto test
If shows error:
- Go to Step 2
/chestconfig get settings.enabled-worlds
If shows [] (empty):
- Spawns in ALL worlds ✅
If shows specific worlds:
Value: [world, world_nether]
- Check you're in enabled world
- Add your world:
/chestconfig set settings.enabled-worlds [world,your_world_name]
/chestnow
If chest spawns:
- ✅ Plugin works
- ❌ Timer issue
- Fix:
/resettimer
If chest doesn't spawn:
- Check console for errors
- Go to Step 4
Common errors:
Error 1: World Not Loaded
[SpawnChestPlugin] ERROR: World 'world' not found!
Fix:
- Check world name spelling
- Make sure world is loaded
- Edit enabled-worlds list
Error 2: No Valid Location Found
[SpawnChestPlugin] WARNING: Could not find valid spawn location after 100 attempts
Causes:
- Spawn zone too small
- All locations unsafe (water/lava/void)
- World border too tight
Fix:
settings:
spawn-zone:
min-distance: 100 # Reduce minimum
max-distance: 5000 # Increase maximum
min-height: 60 # Adjust heights
max-height: 100Test:
/testchestzone
Error 3: All Chunks Unloaded
[SpawnChestPlugin] WARNING: Target chunk not loaded
Fix:
- Increase spawn zone minimum distance
- Make sure areas are loaded (spawn chunks)
- Use chunk loaders in spawn zone
YAML errors:
[SpawnChestPlugin] ERROR: Could not load config.yml
org.yaml.snakeyaml.scanner.ScannerException
Common mistakes:
# ❌ WRONG - missing space after colon
enabled:true
# ✅ CORRECT
enabled: true
# ❌ WRONG - tab character
spawn-interval-seconds: 600
# ✅ CORRECT - 2 spaces
spawn-interval-seconds: 600
# ❌ WRONG - missing quotes
language: en
# ✅ CORRECT
language: "en"Fix:
- Use YAML validator: http://www.yamllint.com/
- Copy error section to validator
- Fix syntax
- Reload:
/reloadchestconfig
/chestconfig get legendary-items.enabled
If false:
/togglelegendary
/chestconfig get legendary-items.dragon-slayer-sword.enabled
If false:
/togglelegendary dragon-slayer-sword
/cooldowns
If on cooldown:
- Wait for cooldown to finish
- Or reduce cooldown in config:
legendary-items:
dragon-slayer-sword:
cooldown-ms: 1000 # 1 secondIf item doesn't work on players:
/chestconfig get abilities.pvp-protection
If true:
- Items DON'T work on players (intended)
- This prevents OP PvP
To enable PvP:
/chestconfig set abilities.pvp-protection false
Check item has:
- ✅ Custom name with color codes
- ✅ Lore (description)
- ✅ High-level enchantments
- ✅ Glowing effect (Unbreaking enchant)
If missing:
- Item is fake/copied
- Get real item:
/getlegendaryitems
Checklist:
- ✅ Feather in inventory when died?
- ✅ Resurrection enabled in config?
/chestconfig get legendary-items.phoenix-feather.resurrection
- ✅ Not killed by
/killcommand? (doesn't protect) - ✅ Not in creative mode?
Test:
1. Get feather: /getlegendaryitems
2. Put in inventory
3. Take damage in survival
4. Should resurrect at low health
Checklist:
- ✅ Homing enabled?
/chestconfig get legendary-items.guardian-bow.homing-arrows
- ✅ Targets within 5 blocks of arrow?
- ✅ Not targeting players (if PvP protection on)?
- ✅ Targets are mobs (not armor stands)?
Test:
1. Spawn mob group
2. Shoot near them (not directly at)
3. Arrows should curve toward mobs
Check ore type:
✅ Auto-smelts:
- Iron Ore → Iron Ingot
- Gold Ore → Gold Ingot
- Copper Ore → Copper Ingot
- Ancient Debris → Netherite Scrap
❌ Does NOT auto-smelt:
- Diamond Ore (already drops item)
- Emerald Ore (already drops item)
- Coal Ore (already drops item)
- Lapis Ore (already drops item)
If not working on correct ore:
/chestconfig get legendary-items.master-pickaxe.auto-smelt
Should be true.
Checklist:
- ✅ Holding SHIFT while breaking block?
- ✅ Breaking diggable block (dirt/sand/gravel)?
- ✅ Area digging enabled?
/chestconfig get legendary-items.void-shovel.area-dig-enabled
- ✅ Not on cooldown?
Test:
1. Get shovel: /getlegendaryitems
2. Place 5x5 dirt area
3. Hold SHIFT
4. Break center dirt
5. Should break 3x3 area
Open main menu:
/putintothechest
Click tier icon, check in lore:
- ✅ "Custom loot: ENABLED" = working
- ❌ "Custom loot: DISABLED" = not active
If disabled but you have items:
- You didn't click Save button
- Re-add items and click Save
Main menu shows:
Items: 0
Problem: No items in loot table
Fix:
- Open edit menu for tier
- Add items from inventory
- Click Save button (slot 6)
If only 0-1 items spawning:
Problem: Fraction too low
Example:
- 5 items total
- 1/10 fraction
- Result: 0-1 items (5 ÷ 10 = 0.5)
Fix:
- Open edit menu
- Click fraction increase (→) button
- Change to 1/3 or higher
- Click Save
Your loot:
- Common: 10 items configured
- Rare: Empty
- Legendary: Empty
If Rare chest spawns:
- Will be empty (default loot)
- Not a bug!
Fix:
- Configure all tiers
- Or adjust chest chances:
chest-chances:
common: 1.0
rare: 0.0
legendary: 0.0/chestconfig get statistics.enabled
If false:
/togglefeature statistics
Linux error:
[SpawnChestPlugin] ERROR: Could not save statistics.yml
java.io.IOException: Permission denied
Fix:
cd /path/to/server/plugins/SpawnChestPlugin
chmod 644 statistics.yml
chmod 755 .df -hIf disk full:
- Free up space
- Move old backups
- Increase server storage
- Server TPS dropping
- Lag spikes when chest spawns
- Player disconnects
/tps
Good: 19-20 TPS
Acceptable: 17-18 TPS
Bad: < 17 TPS
If TPS bad only when chest spawns:
- Plugin issue
- Continue troubleshooting
If TPS always bad:
- Server hardware issue
- Not plugin's fault
features:
effects:
particles: false
chest-beacon-beam: falseReload:
/reloadchestconfig
Impact: Reduces client/server load
features:
guardians:
common-count: 1 # Instead of 2
rare-count: 2 # Instead of 3
legendary-count: 3 # Instead of 5Impact: Less mob AI calculations
/setchesttimer 1800 # 30 minutes instead of 10
Impact: Less frequent spawns = less lag spikes
Common conflicts:
- Multiple chest spawn plugins
- Heavy world gen plugins during chest search
- Laggy protection plugins checking chest placement
Test:
- Stop server
- Remove other plugins temporarily
- Start server
- Test chest spawn
- If fast → other plugin conflict
Use Spark profiler:
- Install Spark plugin
- Run profiler during chest spawn
- Check CPU usage by plugin
- Share results for detailed help
/mystats
Example:
Chests Opened: 7
For "Treasure Hunter" (10 chests):
- Not unlocked yet (need 3 more) ✅ NORMAL
/chestconfig get statistics.achievements.enabled
If false:
/chestconfig set statistics.achievements.enabled true
Manual check:
- Open
statistics.yml - Find player UUID
- Check
chests-opened.totalvalue - Check
achievements.treasure-hunter.unlockedvalue
If requirements met but not unlocked:
- Data corruption
- Open GitHub issue with file
For player commands:
/lp user YourName permission check spawnchest.admin
If doesn't have permission:
/lp user YourName permission set spawnchest.admin true
Error:
Unknown command. Type "/help" for help.
Other plugin might have same command
Test with namespace:
/spawnchestplugin:chestnow
If this works:
- Another plugin conflicts
- Use full command format
- Or remove conflicting plugin
When running command, check console for:
[SpawnChestPlugin] Error executing command: ...
Copy full error and report as bug.
- Wrong language showing
- Missing translations
- Broken characters (���)
/chestconfig get language
Change language:
/chestconfig set language "ru" # Russian
/chestconfig set language "en" # English
Reload:
/reloadchestconfig
For non-English languages (Russian, Ukrainian, Chinese, etc.):
Problem: File must be UTF-8 encoded
Fix (Windows):
- Open language file in Notepad++
- Encoding → Convert to UTF-8
- Save file
- Reload config
Fix (Linux):
iconv -f ISO-8859-1 -t UTF-8 ru.yml > ru_fixed.yml
mv ru_fixed.yml ru.ymlIf messages broken:
- Stop server
- Delete corrupted file:
rm lang/ru.yml- Start server (regenerates default)
- Re-apply custom changes
Causes:
-
Clicking control buttons instead of chest area
- Bottom row = buttons (protected)
- Upper rows = item area ✅
-
Chest full
- Single chest: 18 slots max
- Double chest: 45 slots max
- Remove items or toggle chest type
-
Item is air/empty
- Can't place nothing!
Checklist:
-
✅ Using LEFT click?
- Right click doesn't work
- Shift-click doesn't work
- Only LEFT click
-
✅ Clicking correct slot?
- Slot 1: Chest type
- Slot 3: Decrease fraction
- Slot 5: Increase fraction
- Slot 6: Save
- Slot 7: Back
- Slot 8: Reset
-
✅ GUI still open?
- Don't close and reopen mid-action
Expected behavior:
Single → Double:
- All items transfer ✅
Double → Single:
- First 18 items stay
- Excess items DROP AT YOUR FEET ✅
- Check ground!
Not a bug! This is intended.
Two-step confirmation required:
- Click Reset button (slot 8)
- First menu opens → click Continue (slot 11)
- Second menu opens → click CONFIRM (slot 11)
If cancelled early:
- Nothing happens ✅
- This is safety feature
Reduce count:
guardians:
legendary-count: 2 # Instead of 5Reduce mob difficulty:
- Change server difficulty
- Use mob modifier plugin
Increase count:
guardians:
legendary-count: 10Add custom equipment (future feature)
Gather this information:
- Plugin version:
/version SpawnChestPlugin
- Server info:
/version
-
Console errors:
- Copy full error (not screenshot)
- Include stack trace
-
Config excerpt:
- Relevant section only
- Use pastebin for full config
-
Steps to reproduce:
- What you did
- What you expected
- What actually happened
Priority order:
-
📖 Read documentation (you're here!)
- Check FAQ
- Check Troubleshooting (this page)
-
🔍 Search existing issues
- GitHub Issues search
- Someone may have same problem
-
💬 Ask community
- Discord server
- SpigotMC thread
-
🐛 Report bug
- GitHub Issues (new issue)
- Include all info from above
**Plugin Version:** 4.1.5
**Server:** Paper 1.20.4
**Java:** 17.0.8
**Issue:** Chest doesn't spawn
**Steps to reproduce:**
1. Set spawn-interval to 60
2. Run /chestnow
3. No chest spawns
**Expected:** Chest should spawn immediately
**Console Error:**
[SpawnChestPlugin] ERROR: World 'world' not found!
at com.myplugin.ChestSpawner.spawn(ChestSpawner.java:45)
**Config:**
settings:
enabled-worlds:
- "world"
This is GOOD - clear, detailed, error included
doesnt work help
This is BAD - no information, can't help
java.lang.NullPointerException
at com.myplugin.CustomLootManager.getCustomLoot(CustomLootManager.java:123)
Cause: Trying to access data that doesn't exist
Common scenarios:
- Player UUID not in statistics
- Tier name invalid
- Config value missing
Fix:
- Usually auto-fixed on next action
- If persists, report as bug
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
Cause: Config value has wrong type
Example:
# ❌ WRONG - should be number
spawn-interval-seconds: "600"
# ✅ CORRECT
spawn-interval-seconds: 600Fix:
- Find problematic config line
- Remove quotes from numbers
- Add quotes to strings
- Reload config
java.util.ConcurrentModificationException
Cause: Multiple threads modifying data simultaneously
Fix:
- Usually auto-resolves
- If constant, report as bug
- May indicate memory corruption
java.lang.OutOfMemoryError: Java heap space
Cause: Server out of RAM
Not plugin issue - server configuration problem
Fix:
- Increase server RAM in startup script:
java -Xms2G -Xmx4G -jar paper.jar- Reduce loaded chunks
- Remove other plugins
Create detailed bug report:
Include:
- ✅ Plugin version
- ✅ Server version
- ✅ Full console error
- ✅ Config excerpt
- ✅ Steps to reproduce
Don't include:
- ❌ "It doesn't work" (too vague)
- ❌ Screenshots of code (use text)
- ❌ Entire config.yml (use pastebin)