mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Add version number to /mcmmo command
Also used the logger in onEnable and onDisable
This commit is contained in:
parent
43de871392
commit
db370418f8
@ -28,6 +28,7 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
sender.sendMessage(ChatColor.DARK_AQUA + "Donation Info:");
|
sender.sendMessage(ChatColor.DARK_AQUA + "Donation Info:");
|
||||||
sender.sendMessage(ChatColor.GOLD + " - " + ChatColor.GREEN + "mcmmodev@gmail.com" + ChatColor.GOLD + " Paypal");
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
|
|
||||||
//Check if Repair Anvil and Salvage Anvil have different itemID's
|
//Check if Repair Anvil and Salvage Anvil have different itemID's
|
||||||
if (configInstance.getSalvageAnvilId() == configInstance.getRepairAnvilId()){
|
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()) {
|
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
|
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();
|
BukkitScheduler scheduler = getServer().getScheduler();
|
||||||
|
|
||||||
@ -301,7 +301,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
getLogger().severe(e.toString());
|
getLogger().severe(e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("mcMMO was disabled."); //How informative!
|
getLogger().info("Was disabled."); //How informative!
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user