package joshie.mariculture.api;

import joshie.mariculture.api.fishing.Fishing;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.lang.reflect.InvocationTargetException;

public class MaricultureAPI {
    public static final Logger logger = LogManager.getLogger("Mariculture-API");

    /** Before calling this, you'll want to make sure
     *      the fishery module is enabled, or it WILL be null **/
    public static Fishing fishing = null;

    /** Use this helped method to determine if a module is enabled
     *  It's probably a good idea to cache this value for yourself **/
    public static boolean isModuleEnabled(String name) {
        try {
            return (Boolean) Class.forName("joshie.mariculture.modules.ModuleManager").getMethod("isModuleEnabled", String.class).invoke(null, name);
        } catch (ClassNotFoundException e) {
            logger.log(Level.ERROR, "Could not find the module " + name);
        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
            logger.log(Level.ERROR, "Could not find the isModuleEnabled method");
        }

        //Default Return
        return false;
    }
}

@@ -928,104 +928,10 @@
 ion 
-e) %7B%0A            logger.log(Level.ERROR, %22Could not find the module %22 + name);%0A        %7D catch (
+%7C 
 NoSu

Fix message