mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-25 13:28:58 +02:00
@@ -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);
|
||||||
|
Reference in New Issue
Block a user