mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-25 21:38:59 +02:00
@@ -228,7 +228,7 @@ public class LPPermissible extends PermissibleBase {
|
||||
throw new NullPointerException("plugin");
|
||||
}
|
||||
if (permission == null) {
|
||||
throw new NullPointerException("permission");
|
||||
return addAttachment(plugin);
|
||||
}
|
||||
|
||||
PermissionAttachment ret = addAttachment(plugin);
|
||||
@@ -242,7 +242,10 @@ public class LPPermissible extends PermissibleBase {
|
||||
throw new NullPointerException("plugin");
|
||||
}
|
||||
if (permission == null) {
|
||||
throw new NullPointerException("permission");
|
||||
return addAttachment(plugin);
|
||||
}
|
||||
if (value == null) {
|
||||
return addAttachment(plugin, permission);
|
||||
}
|
||||
|
||||
PermissionAttachment ret = addAttachment(plugin);
|
||||
|
Reference in New Issue
Block a user