mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
Fixed nullcheck error message on null plugin (see previous commit)
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
1 parent
d87866b158
commit
544b0a05ae
1 file changed
+2
-2
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user