Add hasPermission for ProtocolLib update demands
This commit is contained in:
parent
d82f8ac046
commit
e1f9183a37
@ -32,7 +32,7 @@ public class LDUpdateProtocolLib implements LDCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(CommandSender sender) {
|
public boolean hasPermission(CommandSender sender) {
|
||||||
return sender.isOp();
|
return sender.isOp() || sender.hasPermission("minecraft.command.op");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -312,7 +312,7 @@ public class DisguiseListener implements Listener {
|
|||||||
p.removeMetadata("ld_loggedin", LibsDisguises.getInstance());
|
p.removeMetadata("ld_loggedin", LibsDisguises.getInstance());
|
||||||
plugin.getUpdateChecker().notifyUpdate(p);
|
plugin.getUpdateChecker().notifyUpdate(p);
|
||||||
|
|
||||||
if (p.isOp()) {
|
if (p.isOp() || p.hasPermission("minecraft.command.op")) {
|
||||||
String requiredProtocolLib = DisguiseUtilities.getProtocolLibRequiredVersion();
|
String requiredProtocolLib = DisguiseUtilities.getProtocolLibRequiredVersion();
|
||||||
String version = ProtocolLibrary.getPlugin().getDescription().getVersion();
|
String version = ProtocolLibrary.getPlugin().getDescription().getVersion();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user