Refactored logging calls.

This commit is contained in:
Jitse Boonstra
2019-02-20 23:17:31 +01:00
parent 2b74ec532e
commit 9ded01ce7f
3 changed files with 11 additions and 7 deletions
@@ -79,12 +79,12 @@ public abstract class LegacyTinyProtocol {
registerBukkitEvents();
try {
System.out.println("[NPCLib] Attempting to inject into netty.");
plugin.getLogger().info("[NPCLib] Attempting to inject into netty.");
registerChannelHandler();
registerPlayers(plugin);
} catch (IllegalArgumentException ex) {
// Damn you, late bind
plugin.getLogger().info("[NPCLib] Attempting to delay injection.");
plugin.getLogger().log(Level.WARNING, "[NPCLib] Attempting to delay injection.");
new BukkitRunnable() {
@Override
@@ -198,7 +198,7 @@ public abstract class LegacyTinyProtocol {
serverChannels.add(serverChannel);
serverChannel.pipeline().addFirst(serverChannelHandler);
System.out.println("[NPCLib] Server channel handler injected (" + serverChannel + ")");
plugin.getLogger().info("[NPCLib] Server channel handler injected (" + serverChannel + ")");
looking = false;
}
}