Add some logging information to console.

This commit is contained in:
Jesse Prescott 2018-05-31 00:17:41 +01:00
parent 1a96061664
commit 668d02e307
2 changed files with 17 additions and 0 deletions

View File

@ -73,12 +73,22 @@ public final class ItemCaseCore extends JavaPlugin {
return;
}
// Log.
this.consoleLogger.info("Successfully loaded main configuration file.");
// Initialize ItemcaseManager.
this.itemcaseManager = new ItemcaseManager();
// Register ItemcaseListener.
this.getServer().getPluginManager().registerEvents(
new ItemcaseListener(), this);
// Log.
this.consoleLogger.info("Main event listener registered.");
// Log.
this.consoleLogger.info("ItemCase " +
this.getDescription().getVersion() + " enabled.");
}
@Override
@ -86,6 +96,9 @@ public final class ItemCaseCore extends JavaPlugin {
// Unload all itemcases.
this.itemcaseManager.unloadItemcases();
// Log.
this.consoleLogger.info("Itemcases unloaded successfully.");
}
/**

View File

@ -77,6 +77,10 @@ public final class ItemcaseManager {
// Exit.
return;
}
// Log.
ItemCaseCore.instance.getConsoleLogger().info(
"Loaded itemcases for world: " + world.getName());
}
}