diff --git a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdateProtocolLib.java b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdateProtocolLib.java index 93fd4a2e..23033102 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdateProtocolLib.java +++ b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUpdateProtocolLib.java @@ -32,7 +32,7 @@ public class LDUpdateProtocolLib implements LDCommand { @Override public boolean hasPermission(CommandSender sender) { - return sender.isOp(); + return sender.isOp() || sender.hasPermission("minecraft.command.op"); } @Override diff --git a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java index 5755a0d5..f73241b4 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java @@ -312,7 +312,7 @@ public class DisguiseListener implements Listener { p.removeMetadata("ld_loggedin", LibsDisguises.getInstance()); plugin.getUpdateChecker().notifyUpdate(p); - if (p.isOp()) { + if (p.isOp() || p.hasPermission("minecraft.command.op")) { String requiredProtocolLib = DisguiseUtilities.getProtocolLibRequiredVersion(); String version = ProtocolLibrary.getPlugin().getDescription().getVersion();