mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-07 08:57:33 +01:00
parent
dd78e0e271
commit
5fa481337a
@ -228,7 +228,7 @@ public class LPPermissible extends PermissibleBase {
|
|||||||
throw new NullPointerException("plugin");
|
throw new NullPointerException("plugin");
|
||||||
}
|
}
|
||||||
if (permission == null) {
|
if (permission == null) {
|
||||||
throw new NullPointerException("permission");
|
return addAttachment(plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
PermissionAttachment ret = addAttachment(plugin);
|
PermissionAttachment ret = addAttachment(plugin);
|
||||||
@ -242,7 +242,10 @@ public class LPPermissible extends PermissibleBase {
|
|||||||
throw new NullPointerException("plugin");
|
throw new NullPointerException("plugin");
|
||||||
}
|
}
|
||||||
if (permission == null) {
|
if (permission == null) {
|
||||||
throw new NullPointerException("permission");
|
return addAttachment(plugin);
|
||||||
|
}
|
||||||
|
if (value == null) {
|
||||||
|
return addAttachment(plugin, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
PermissionAttachment ret = addAttachment(plugin);
|
PermissionAttachment ret = addAttachment(plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user