Adjust plugin enable/disable logging

By: EdGruberman <ed@rjump.com>
This commit is contained in:
Bukkit/Spigot 2012-02-15 12:11:10 -07:00
parent 2e383f96df
commit 3b9e2f4a67

View File

@ -328,8 +328,8 @@ public class JavaPluginLoader implements PluginLoader {
}
if (!plugin.isEnabled()) {
String message = String.format("[%s] Loading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
server.getLogger().info(message);
String message = String.format("Enabling %s", plugin.getDescription().getFullName());
plugin.getLogger().info(message);
JavaPlugin jPlugin = (JavaPlugin) plugin;
@ -357,8 +357,8 @@ public class JavaPluginLoader implements PluginLoader {
}
if (plugin.isEnabled()) {
String message = String.format("[%s] Unloading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
server.getLogger().info(message);
String message = String.format("Disabling %s", plugin.getDescription().getFullName());
plugin.getLogger().info(message);
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));