diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 14:32:56 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 14:32:56 +0000 |
commit | 88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001 (patch) | |
tree | 7d8439804fdd80e1748d0adc5a0fed73efe9649a | |
parent | 63673c496f3dec4b543e483de73a12c7a2d8b13e (diff) | |
download | bukkit-88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001.tar bukkit-88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001.tar.gz bukkit-88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001.tar.lz bukkit-88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001.tar.xz bukkit-88a1512ee3d5cf0c5ea3d3d952b061ffb3f7e001.zip |
Fixed nullcheck error message on null plugin (see previous commit)
-rw-r--r-- | src/main/java/org/bukkit/plugin/SimplePluginManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 3e89adf8..fb19a2ea 100644 --- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -383,7 +383,7 @@ public final class SimplePluginManager implements PluginManager { throw new IllegalArgumentException("Priority cannot be null"); } if (plugin == null) { - throw new IllegalArgumentException("Priority cannot be null"); + throw new IllegalArgumentException("Plugin cannot be null"); } if (!plugin.isEnabled()) { throw new IllegalPluginAccessException("Plugin attempted to register " + type + " while not enabled"); @@ -412,7 +412,7 @@ public final class SimplePluginManager implements PluginManager { throw new IllegalArgumentException("Priority cannot be null"); } if (plugin == null) { - throw new IllegalArgumentException("Priority cannot be null"); + throw new IllegalArgumentException("Plugin cannot be null"); } if (!plugin.isEnabled()) { throw new IllegalPluginAccessException("Plugin attempted to register " + type + " while not enabled"); |