Updated log outputs to API v3
This commit is contained in:
parent
81c10e62c2
commit
29460573f7
@ -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.
|
/** The module loader, mother of all modules. Responsible for loading and taking care of all modules.
|
||||||
*
|
*
|
||||||
* @author Pepich */
|
* @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
|
public final class ModuleLoader implements CoreModule
|
||||||
{
|
{
|
||||||
private static ModuleLoader instance;
|
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()))
|
if (VersionHelper.isCompatible(VersionHelper.create(2, 0, 0, -1), module.getClass()))
|
||||||
CommandManager.registerCommand(module.getCommandString(), module, Main.plugin);
|
CommandManager.registerCommand(module.getCommandString(), module, Main.plugin);
|
||||||
modules.put(module, true);
|
modules.put(module, true);
|
||||||
Utils.log("Loaded module " + module.getClass().getName());
|
Utils.info("Loaded module " + module.getClass().getName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Utils.error("Failed to load module " + module.getClass().getName());
|
Utils.error("Failed to load module " + module.getClass().getName());
|
||||||
@ -85,7 +85,7 @@ public final class ModuleLoader implements CoreModule
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Utils.log("Modules enabled, running post initialization.");
|
Utils.info("Modules enabled, running post initialization.");
|
||||||
for (Module module : modules.keySet())
|
for (Module module : modules.keySet())
|
||||||
{
|
{
|
||||||
if (modules.get(module))
|
if (modules.get(module))
|
||||||
@ -128,7 +128,7 @@ public final class ModuleLoader implements CoreModule
|
|||||||
{
|
{
|
||||||
Bukkit.getPluginManager().registerEvents((Listener) module, Main.plugin);
|
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);
|
modules.put(module, true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ public final class ModuleLoader implements CoreModule
|
|||||||
{
|
{
|
||||||
Bukkit.getPluginManager().registerEvents((Listener) m, Main.plugin);
|
Bukkit.getPluginManager().registerEvents((Listener) m, Main.plugin);
|
||||||
}
|
}
|
||||||
Utils.log("Loaded module " + m.getClass().getName());
|
Utils.info("Loaded module " + m.getClass().getName());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user