From 9133951446da4d7732681a1812bba95f2a3b48bb Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 8 Oct 2016 16:45:18 +0100 Subject: [PATCH] I'm dumb --- .../me/lucko/luckperms/users/BukkitUser.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java b/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java index 710dff2eb..155770626 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java +++ b/bukkit/src/main/java/me/lucko/luckperms/users/BukkitUser.java @@ -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")