Add version number to /mcmmo command

Also used the logger in onEnable and onDisable
This commit is contained in:
TfT_02 2012-12-30 00:02:39 +01:00
parent 43de871392
commit db370418f8
2 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@ public class McmmoCommand implements CommandExecutor {
sender.sendMessage(ChatColor.DARK_AQUA + "Donation Info:");
sender.sendMessage(ChatColor.GOLD + " - " + ChatColor.GREEN + "mcmmodev@gmail.com" + ChatColor.GOLD + " Paypal");
}
sender.sendMessage(ChatColor.YELLOW + "Running version: " + ChatColor.DARK_AQUA + mcMMO.p.getDescription().getVersion());
return true;
}

View File

@ -148,7 +148,7 @@ public class mcMMO extends JavaPlugin {
//Check if Repair Anvil and Salvage Anvil have different itemID's
if (configInstance.getSalvageAnvilId() == configInstance.getRepairAnvilId()){
System.out.println("[WARNING!] Can't use the same itemID for Repair/Salvage Anvils!" );
getLogger().warning("Can't use the same itemID for Repair/Salvage Anvils!");
}
if (!configInstance.getUseMySQL()) {
@ -182,7 +182,7 @@ public class mcMMO extends JavaPlugin {
Users.addUser(player); //In case of reload add all users back into PlayerProfile
}
System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" );
getLogger().info("Version " + pdfFile.getVersion() + " is enabled!");
BukkitScheduler scheduler = getServer().getScheduler();
@ -301,7 +301,7 @@ public class mcMMO extends JavaPlugin {
getLogger().severe(e.toString());
}
System.out.println("mcMMO was disabled."); //How informative!
getLogger().info("Was disabled."); //How informative!
}
/**