Fixed nullcheck error message on null plugin (see previous commit)
This commit is contained in:
parent
63673c496f
commit
88a1512ee3
@ -383,7 +383,7 @@ public final class SimplePluginManager implements PluginManager {
|
|||||||
throw new IllegalArgumentException("Priority cannot be null");
|
throw new IllegalArgumentException("Priority cannot be null");
|
||||||
}
|
}
|
||||||
if (plugin == null) {
|
if (plugin == null) {
|
||||||
throw new IllegalArgumentException("Priority cannot be null");
|
throw new IllegalArgumentException("Plugin cannot be null");
|
||||||
}
|
}
|
||||||
if (!plugin.isEnabled()) {
|
if (!plugin.isEnabled()) {
|
||||||
throw new IllegalPluginAccessException("Plugin attempted to register " + type + " while not enabled");
|
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");
|
throw new IllegalArgumentException("Priority cannot be null");
|
||||||
}
|
}
|
||||||
if (plugin == null) {
|
if (plugin == null) {
|
||||||
throw new IllegalArgumentException("Priority cannot be null");
|
throw new IllegalArgumentException("Plugin cannot be null");
|
||||||
}
|
}
|
||||||
if (!plugin.isEnabled()) {
|
if (!plugin.isEnabled()) {
|
||||||
throw new IllegalPluginAccessException("Plugin attempted to register " + type + " while not enabled");
|
throw new IllegalPluginAccessException("Plugin attempted to register " + type + " while not enabled");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user