mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
I'm dumb
This commit is contained in:
parent
7853d4686a
commit
9133951446
@ -40,8 +40,9 @@ import java.util.UUID;
|
||||
public class BukkitUser extends User {
|
||||
private final LPBukkitPlugin plugin;
|
||||
|
||||
private LPPermissible lpPermissible = null;
|
||||
private final Object permissibleLock = new Object();
|
||||
@Getter
|
||||
@Setter
|
||||
private LPPermissible permissible = null;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@ -58,19 +59,7 @@ public class BukkitUser extends User {
|
||||
}
|
||||
|
||||
public boolean isOp() {
|
||||
return lpPermissible != null && lpPermissible.isOp();
|
||||
}
|
||||
|
||||
public LPPermissible getPermissible() {
|
||||
synchronized (permissibleLock) {
|
||||
return lpPermissible;
|
||||
}
|
||||
}
|
||||
|
||||
public void setPermissible(LPPermissible permissible) {
|
||||
synchronized (permissibleLock) {
|
||||
lpPermissible = permissible;
|
||||
}
|
||||
return permissible != null && permissible.isOp();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
Loading…
Reference in New Issue
Block a user