Reduced the amount of info messages in the console when enabling/disabling

This commit is contained in:
TfT_02 2013-04-13 21:53:00 +02:00
parent f05b9ae365
commit e59c7ac34a
4 changed files with 10 additions and 9 deletions

View File

@ -24,6 +24,7 @@ Version 1.4.06-dev
! Players will no longer pickup items to their hotbar while using Unarmed
! ExperienceAPI methods will now throw InvalidSkillException if the skill name passed in is invalid.
! Changed default value for recently-hurt cooldown between teleports, this is also fully configurable now
! Changed the amount of info messages in the console when enabling/disabling, enable Verbose_Logging to enable them again
Version 1.4.05
+ Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)

View File

@ -30,11 +30,11 @@ public abstract class ConfigLoader {
protected void loadFile() {
if (!configFile.exists()) {
plugin.getLogger().info("Creating mcMMO " + fileName + " File...");
plugin.debug("Creating mcMMO " + fileName + " File...");
createFile();
}
else {
plugin.getLogger().info("Loading mcMMO " + fileName + " File...");
plugin.debug("Loading mcMMO " + fileName + " File...");
}
config = YamlConfiguration.loadConfiguration(configFile);

View File

@ -133,7 +133,7 @@ public class mcMMO extends JavaPlugin {
UserManager.addUser(player); // In case of reload add all users back into UserManager
}
getLogger().info("Version " + getDescription().getVersion() + " is enabled!");
debug("Version " + getDescription().getVersion() + " is enabled!");
scheduleTasks();
registerCommands();
@ -198,7 +198,7 @@ public class mcMMO extends JavaPlugin {
}
}
getLogger().info("Was disabled."); // How informative!
debug("Was disabled."); // How informative!
}
public static String getMainDirectory() {

View File

@ -28,13 +28,13 @@ public class ZipLibrary {
public static void mcMMObackup() throws IOException {
if (Config.getInstance().getUseMySQL()) {
mcMMO.p.getLogger().info("This server is running in SQL Mode.");
mcMMO.p.getLogger().info("Only config files will be backed up.");
mcMMO.p.debug("This server is running in SQL Mode.");
mcMMO.p.debug("Only config files will be backed up.");
}
try {
if (BackupDir.mkdir()) {
mcMMO.p.getLogger().info("Created Backup Directory.");
mcMMO.p.debug("Created Backup Directory.");
}
}
catch (Exception e) {
@ -66,7 +66,7 @@ public class ZipLibrary {
}
// Actually do something
mcMMO.p.getLogger().info("Backing up your mcMMO Configuration... ");
mcMMO.p.debug("Backing up your mcMMO Configuration... ");
packZip(fileZip, sources);
}
@ -86,7 +86,7 @@ public class ZipLibrary {
zipOut.flush();
zipOut.close();
mcMMO.p.getLogger().info("Backup Completed.");
mcMMO.p.debug("Backup Completed.");
}
private static String buildPath(String path, String file) {