diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-09-30 03:35:06 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-09-30 03:35:06 -0500 |
commit | 955e0c437cd9608d3929064367cc4982a795ffa7 (patch) | |
tree | ab7a4786377355d094186c9c37bdf8e48c025e00 /src/main/java | |
parent | b23edfd2d3f86b27d8b57d82830a64a94372906a (diff) | |
download | bukkit-955e0c437cd9608d3929064367cc4982a795ffa7.tar bukkit-955e0c437cd9608d3929064367cc4982a795ffa7.tar.gz bukkit-955e0c437cd9608d3929064367cc4982a795ffa7.tar.lz bukkit-955e0c437cd9608d3929064367cc4982a795ffa7.tar.xz bukkit-955e0c437cd9608d3929064367cc4982a795ffa7.zip |
Clarify some of the verbose in SimplePluginManager.
When an exception occurs, the version of the plugin is not included.
Having this information would be beneficial to plugin authors performing
debug.
The list of authors for NagAuthorException verbose (although unused)
would be more appropriate to simply include all authors, as opposed to
the first appearing.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/plugin/SimplePluginManager.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java index ca780fca..d4f6bf34 100644 --- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -481,20 +481,15 @@ public final class SimplePluginManager implements PluginManager { if (plugin.isNaggable()) { plugin.setNaggable(false); - String author = "<NoAuthorGiven>"; - - if (plugin.getDescription().getAuthors().size() > 0) { - author = plugin.getDescription().getAuthors().get(0); - } server.getLogger().log(Level.SEVERE, String.format( - "Nag author: '%s' of '%s' about the following: %s", - author, - plugin.getDescription().getName(), + "Nag author(s): '%s' of '%s' about the following: %s", + plugin.getDescription().getAuthors(), + plugin.getDescription().getFullName(), ex.getMessage() )); } } catch (Throwable ex) { - server.getLogger().log(Level.SEVERE, "Could not pass event " + event.getEventName() + " to " + registration.getPlugin().getDescription().getName(), ex); + server.getLogger().log(Level.SEVERE, "Could not pass event " + event.getEventName() + " to " + registration.getPlugin().getDescription().getFullName(), ex); } } } |