blade69_

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 1 error(s):

ERROR in src/main/java/me/maceleak/listener/CraftListener.java at line 24: cannot find symbol
            plugin.getLeakManager().startLeak(p);
                  ^
  symbol: method getLeakManager()
  location: variable plugin of type MaceLeakPlugin


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getLeakManager()
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/me/maceleak/listener/CraftListener.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
README.md
Code
8 181
src/main/java/me/maceleak/MaceLeakPlugin.java
package me.maceleak;

import me.maceleak.leak.LeakManager;
import me.maceleak.listener.CraftListener;
import me.maceleak.db.SQLite;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class MaceLeakPlugin extends JavaPlugin {

    private static MaceLeakPlugin instance;
    private LeakManager leakManager;
    private SQLite database;

    public static MaceLeakPlugin get() {
        return instance;
    }

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        database = new SQLite(this);
        database.init();
        leakManager = new LeakManager(this);
        Bukkit.getPluginManager().registerEvents(new CraftListener(this), this);
    }
}