0

Updated log outputs to API v3

This commit is contained in:
Pepich 2017-03-23 11:33:40 +01:00
parent 81c10e62c2
commit 29460573f7

View File

@ -24,7 +24,7 @@ import com.redstoner.modules.Module;
/** The module loader, mother of all modules. Responsible for loading and taking care of all modules.
*
* @author Pepich */
@Version(major = 3, minor = 0, revision = 0, compatible = 2)
@Version(major = 3, minor = 0, revision = 1, compatible = 2)
public final class ModuleLoader implements CoreModule
{
private static ModuleLoader instance;
@ -74,7 +74,7 @@ public final class ModuleLoader implements CoreModule
if (VersionHelper.isCompatible(VersionHelper.create(2, 0, 0, -1), module.getClass()))
CommandManager.registerCommand(module.getCommandString(), module, Main.plugin);
modules.put(module, true);
Utils.log("Loaded module " + module.getClass().getName());
Utils.info("Loaded module " + module.getClass().getName());
}
else
Utils.error("Failed to load module " + module.getClass().getName());
@ -85,7 +85,7 @@ public final class ModuleLoader implements CoreModule
e.printStackTrace();
}
}
Utils.log("Modules enabled, running post initialization.");
Utils.info("Modules enabled, running post initialization.");
for (Module module : modules.keySet())
{
if (modules.get(module))
@ -128,7 +128,7 @@ public final class ModuleLoader implements CoreModule
{
Bukkit.getPluginManager().registerEvents((Listener) module, Main.plugin);
}
Utils.log("Loaded module " + module.getClass().getName());
Utils.info("Loaded module " + module.getClass().getName());
modules.put(module, true);
return true;
}
@ -149,7 +149,7 @@ public final class ModuleLoader implements CoreModule
{
Bukkit.getPluginManager().registerEvents((Listener) m, Main.plugin);
}
Utils.log("Loaded module " + m.getClass().getName());
Utils.info("Loaded module " + m.getClass().getName());
return true;
}
else