Compilation Error Missing required files
I’ll identify and create the missing required files for your plugin.
Now I need to check what files are missing. Let me read the command files and other critical files to understand what’s needed:
Based on the compilation error and project analysis, I need to create the missing plugin.yml file and the missing confirm-duel.yml and select-world.yml menu configuration files.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 63 error(s):
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 79: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 119: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 159: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 199: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 239: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 269: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 280: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 79: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 119: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 159: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 199: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 239: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 269: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 280: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: constructor SoundPlayer in class SoundPlayer cannot be applied to given types;
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 78: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 118: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 158: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 198: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 238: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_LEVER_CLICK").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 268: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_CLOSE").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 279: cannot inherit from final SoundPlayer
XSound.matchXSound("BLOCK_CHEST_OPEN").ifPresent(new XSound.SoundPlayer() {
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 79: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 119: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 159: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 199: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 239: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 269: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 280: method does not override or implement a method from a supertype
@Override
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java
- src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I’ll read the ArenaManageGUI.java file to see the incorrect XSound usage and fix it.
The issue is clear: the code is trying to create an anonymous inner class from XSound.SoundPlayer, which is a final class. The correct XSound usage is to call the play() method directly on the XSound instance.
The pattern should be:
XSound.matchXSound("SOUND_NAME").ifPresent(sound -> sound.play(player));
Let me fix the ArenaManageGUI.java file:
Fixed all XSound usage in ArenaManageGUI.java. The issue was attempting to create anonymous inner classes from XSound.SoundPlayer, which is a final class. Changed all occurrences to use lambda expressions that call sound.play(player) directly.
Here is the clean, fixed, and well-structured version with proper English and optimized design (low CPU / TPS friendly):
New Features to Add (Optimized & Stable) 1️⃣ Match History System Command /matchhistory
Function
Show the player’s duel history, including:
Opponent name
Result (Win / Loss / Draw)
Arena name
Date & time of the match
Display
Can be:
Chat-based list (page system)
OR simple INVENTORY GUI (optional)
Example:
Match History:
- vs Steve | WIN | Arena: Crystal-1 | 2026-01-02
- vs Alex | LOSS | Arena: Crystal-2 | 2026-01-01
Data Handling (Optimized)
Save match history:
On duel end only
No repeating saves
Store using:
YAML (for small servers)
OR SQLite (recommended, low MSPT)
Limit stored history per player (example: last 50 matches)
2️⃣ Random Duel Queue System Command /duelq
How It Works
Player uses /duelq → joins random duel queue
When 2 players are in queue:
Automatically start a duel
Select a random FREE arena
Teleport both players instantly
If no arena is free:
Keep players in queue
Start duel when an arena becomes available
Queue Rules
Player can only:
Be in one queue
Be in one duel
If player leaves the server:
Remove from queue automatically
3️⃣ Random Arena Selection
Use only arenas that:
Are marked FREE
Are enabled
Do NOT scan arenas repeatedly
Cache free arenas in memory for fast access
4️⃣ Performance & Optimization (Very Important) MUST Follow
No loops running every tick
No async block edits on main thread
No repeated arena scans
Use:
Event-based logic
One-time schedulers only when needed
Queue Optimization
Queue is handled by:
Simple Queue<UUID>
No timers
No background tasks
Match History Optimization
Write data:
Only when duel ends
Read data:
Only when player uses /matchhistory
5️⃣ Safety & Stability
Every duel must:
Start once
End once
Clean all tasks
Prevent:
Double duel start
Wrong teleports
Cross-duel bugs
6️⃣ Plugin Name
Everything must use LemonDuel:
Plugin name
Commands
Config
Messages
Code
Data folders
I’ll add the match history and random queue systems to LemonDuel with optimal performance. Let me first check the existing structure.
Now I’ll read the Arena class and check plugin.yml to understand the complete structure:
Now I’ll implement the new features. Here’s my plan:
Implementation Plan:
Create MatchHistoryManager for SQLite-based match storage (optimized, last 50 matches per player)
Create DuelQueueManager for random queue system (event-based, no background tasks)
Add /matchhistory command (chat-based with pagination)
Add /duelq command for queue system
Integrate match history recording in DuelEndHandler
Update plugin initialization and shutdown
Add config options and messages
Perfect! I’ve successfully implemented both features with optimal performance:
✅ What Was Added:
1️⃣ Match History System (/matchhistory [page])
SQLite database for efficient storage (low MSPT)
Stores last 50 matches per player (configurable)
Records: opponent name, result (WIN/LOSS/DRAW), arena, date/time
Chat-based pagination (10 matches per page, configurable)
Async operations - writes happen in background, no lag
Auto-cleanup of old matches
2️⃣ Random Duel Queue (/duelq)
Event-based - NO background tasks or timers
Simple
Queue<UUID>- instant matching when 2 players joinRandom free arena selection - cached in memory
Auto-removes disconnected players from queue
Integrates with existing countdown system
If no arena free, keeps players in queue until one becomes available
3️⃣ Performance Optimizations
✅ No tick-based loops
✅ No repeated arena scans
✅ Async database writes only on duel end
✅ Async database reads for
/matchhistory✅ Memory-efficient queue system
✅ Proper cleanup on player quit
4️⃣ Safety Features
Queue removes players on disconnect
Prevents double-queueing
Prevents queueing while in duel
Match history records only on duel end (once)
SQLite auto-cleanup keeps database small
5️⃣ Configuration
All new features are configurable in config.yml:
match-history:
enabled: true
max-matches-per-player: 50
page-size: 10
queue:
enabled: true
The system is TPS-friendly, uses minimal resources, and follows all your optimization requirements!
Loot Time Issue & Match History INVENTORY GUI 1️⃣ Loot Time Not Showing (Critical Bug) Problem
Loot time is not appearing after a duel ends.
The timer does not start or does not show, as seen in the image.
Required Fix
When a player wins a duel:
Loot time must start immediately
Loot timer must be visible
Show loot time using:
Action Bar (preferred)
OR Boss Bar (optional)
Example (Action Bar):
Loot time remaining: 04:59
Timer Rules
Timer must:
Run only once
Update every second
Stop immediately if:
Winner uses /leave
Duel ends
Server reloads
No duplicate timers
No CPU-heavy loops
Config Options loot-time: enabled: true duration-seconds: 300 display: ACTION_BAR
2️⃣ Match History INVENTORY GUI (Hover / Mouse View) Command /matchhistory
INVENTORY GUI Behavior
Open a INVENTORY GUI menu showing the player’s match history.
Each match is shown as an item (example: paper or sword).
Hover (Mouse Over) Details
When the player moves the mouse over an item, show:
Opponent name
Result (WIN / LOSS / DRAW)
Arena name
Date & time
This information must be shown using item lore.
Example Lore:
Opponent: Steve Result: WIN Arena: Crystal-1 Date: 2026-01-02
INVENTORY GUI Rules
Paginated INVENTORY GUI (Next / Previous buttons)
Clean and compact size
No lag when opening
Load data only when INVENTORY GUI opens
3️⃣ Performance & Optimization (Very Important) Loot Timer Optimization
Use one BukkitRunnable per duel
Cancel task immediately on duel end
No async → sync spam
Match History Optimization
Store history:
On duel end only
Read history:
Only when /matchhistory is used
Limit stored matches (example: last 50)
4️⃣ Stability Rules
Loot time must never affect other duels
Match history must:
Never load all players’ data
Only load the requesting player’s history
5️⃣ Plugin Name
Everything must remain named LemonDuel:
Plugin
Commands
GUIs
Config
Messages
Code
I’ll fix the loot time display bug and create the Match History INVENTORY GUI. Let me first examine the current implementation.
Now let me read the remaining necessary files:
Now I’ll analyze and implement the fixes:
Plan:
Fix loot time action bar timer (currently not showing)
Create Match History GUI with pagination
Add loot timer task with action bar updates
Update config with new messages
Create menu config for match history GUI
Summary
Fixed:
Loot Time Action Bar Timer - Now displays countdown timer every second using action bar
Match History GUI - Created interactive inventory menu with:
Hover-over item lore showing opponent, result, arena, date
Pagination (Previous/Next buttons)
Clean design with fill items
Optimized loading (only loads when GUI opens)
Key Changes:
DuelEndHandler.java: AddedstartLootTimeActionBar()method with BukkitRunnable that updates action bar every secondMatchHistoryGUI.java: New GUI implementation using existing frameworkMatchHistoryCommand.java: Now opens GUI instead of chat displayconfig.yml: Addedloot-time-actionbarmessage andduration-secondsconfigmatch-history.yml: New menu configuration fileConfigManager.java: Added methods for new config options
Performance:
Single BukkitRunnable per loot timer
Auto-cancels on duel end or player disconnect
Match history loads only when GUI opens
Respects 50 match limit per player
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 36 error(s):
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 33: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 41: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 38: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 46: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 48: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 270: cannot find symbol
if (plugin.getConfigManager().isWinRateEnabled() && plugin.getConfigManager().isWinRateDisplayEnabled()) {
^
symbol: method isWinRateDisplayEnabled()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 392: cannot find symbol
if (plugin.getConfigManager().isAutoClaimK1()) {
^
symbol: method isAutoClaimK1()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 47: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 33: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 41: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 38: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 46: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 48: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 270: cannot find symbol
if (plugin.getConfigManager().isWinRateEnabled() && plugin.getConfigManager().isWinRateDisplayEnabled()) {
^
symbol: method isWinRateDisplayEnabled()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 392: cannot find symbol
if (plugin.getConfigManager().isAutoClaimK1()) {
^
symbol: method isAutoClaimK1()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 47: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 33: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java at line 41: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-player");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("select-world");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 38: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java at line 46: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("confirm-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 40: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 48: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("accept-duel");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 270: cannot find symbol
if (plugin.getConfigManager().isWinRateEnabled() && plugin.getConfigManager().isWinRateDisplayEnabled()) {
^
symbol: method isWinRateDisplayEnabled()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java at line 392: cannot find symbol
if (plugin.getConfigManager().isAutoClaimK1()) {
^
symbol: method isAutoClaimK1()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 32: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
ERROR in src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java at line 47: cannot find symbol
FileConfiguration menu = plugin.getConfigManager().getMenus().get("arena-manage");
^
symbol: method getMenus()
location: class ConfigManager
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- getMenus()
- isWinRateDisplayEnabled()
- isAutoClaimK1()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java
- src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java
- src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java
- src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java
- src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java
- src/main/java/com/lemonduel/inventory/impl/SelectPlayerGUI.java
- src/main/java/com/lemonduel/inventory/impl/SelectWorldGUI.java
- src/main/java/com/lemonduel/inventory/impl/ConfirmDuelGUI.java
- src/main/java/com/lemonduel/inventory/impl/AcceptDuelGUI.java
- src/main/java/com/lemonduel/inventory/impl/ArenaManageGUI.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
package com.lemonduel;
import com.lemonduel.arena.ArenaManager;
import com.lemonduel.arena.ArenaResetManager;
import com.lemonduel.command.*;
import com.lemonduel.config.ConfigManager;
import com.lemonduel.data.DuelDataManager;
import com.lemonduel.data.MatchHistoryManager;
import com.lemonduel.data.WinRateManager;
import com.lemonduel.duel.DuelEndHandler;
import com.lemonduel.inventory.gui.GUIListener;
import com.lemonduel.inventory.gui.GUIManager;
import com.lemonduel.listener.*;
import com.lemonduel.queue.DuelQueueManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class LemonDuel extends JavaPlugin {
@Getter
private GUIManager guiManager;
@Getter
private DuelDataManager dataManager;
@Getter
private ConfigManager configManager;
@Getter
private ArenaManager arenaManager;
@Getter
private WinRateManager winRateManager;
@Getter
private ArenaResetManager arenaResetManager;
@Getter
private DuelEndHandler duelEndHandler;
@Getter
private MatchHistoryManager matchHistoryManager;
@Getter
private DuelQueueManager queueManager;
@Override
public void onEnable() {
this.configManager = new ConfigManager(this);
this.guiManager = new GUIManager();
this.dataManager = new DuelDataManager();
this.arenaManager = new ArenaManager(this);
this.winRateManager = new WinRateManager(this);
this.arenaResetManager = new ArenaResetManager(this);
this.duelEndHandler = new DuelEndHandler(this);
this.matchHistoryManager = new MatchHistoryManager(this);
this.queueManager = new DuelQueueManager(this);
registerCommands();
registerListeners();
Bukkit.getScheduler().runTaskLater(this, () -> {
arenaResetManager.captureAllArenas();
getLogger().info("Captured all arena snapshots for reset system");
}, 40L);
getLogger().info("LemonDuel has been enabled!");
}
@Override
public void onDisable() {
if (queueManager != null) {
queueManager.clearQueue();
}
if (matchHistoryManager != null) {
matchHistoryManager.shutdown();
}
if (winRateManager != null) {
winRateManager.shutdown();
}
if (dataManager != null) {
dataManager.clearAll();
}
if (guiManager != null) {
guiManager.cleanup();
}
getLogger().info("LemonDuel has been disabled!");
}
private void registerCommands() {
getCommand("duel").setExecutor(new DuelCommand(this));
getCommand("duelaccept").setExecutor(new DuelAcceptCommand(this));
getCommand("togglechat").setExecutor(new ToggleChatCommand(this));
getCommand("dueltoggle").setExecutor(new DuelToggleCommand(this));
getCommand("stats").setExecutor(new StatsCommand(this));
getCommand("lemonduel").setExecutor(new LemonDuelCommand(this));
getCommand("arena").setExecutor(new ArenaCommand(this));
getCommand("leave").setExecutor(new LeaveCommand(this));
getCommand("draw").setExecutor(new DrawCommand(this));
getCommand("matchhistory").setExecutor(new MatchHistoryCommand(this));
getCommand("duelq").setExecutor(new DuelQCommand(this));
}
private void registerListeners() {
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
Bukkit.getPluginManager().registerEvents(new MoveListener(this), this);
Bukkit.getPluginManager().registerEvents(new JoinQuitListener(this), this);
Bukkit.getPluginManager().registerEvents(new EnderPearlListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
Bukkit.getPluginManager().registerEvents(new CommandBlockListener(this), this);
Bukkit.getPluginManager().registerEvents(new ElytraListener(this), this);
Bukkit.getPluginManager().registerEvents(new MobSpawnListener(this), this);
}
public void reload() {
configManager.loadConfigs();
arenaManager.saveArenas();
winRateManager.saveData();
}
}