From 331ff341f3be1e7df0bba801270e00e2befd4949 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 28 Nov 2016 20:11:10 +0000 Subject: [PATCH] Fix autoop --- .../src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java index 13c9ee5d..a29b79ea 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/LPBukkitPlugin.java @@ -245,7 +245,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin { // register permissions registerPermissions(getConfiguration().isCommandsAllowOp() ? PermissionDefault.OP : PermissionDefault.FALSE); if (!getConfiguration().isOpsEnabled()) { - getServer().getOperators().forEach(o -> o.setOp(false)); + getServer().getScheduler().runTask(this, () -> getServer().getOperators().forEach(o -> o.setOp(false))); } // replace the temporary executor when the Bukkit one starts