From 544b0a05aec267d2204d849549bdfde7324f84ec Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 14 Jan 2012 14:32:56 +0000 Subject: [PATCH] Fixed nullcheck error message on null plugin (see previous commit) By: Nathan Adams --- .../src/main/java/org/bukkit/plugin/SimplePluginManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 3e89adf86..fb19a2ea4 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/paper-api/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");