Fix autoop

This commit is contained in:
Luck 2016-11-28 20:11:10 +00:00
parent 793a84edfb
commit 331ff341f3
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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