summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/plugin/SimplePluginManager.java4
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");