mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-06 00:18:39 +01:00
parent
dd78e0e271
commit
5fa481337a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user