diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHookManager.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHookManager.java index d5ca3ded..53bf4932 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHookManager.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultHookManager.java @@ -78,7 +78,7 @@ public class VaultHookManager { if (permissionHook != null) { sm.unregister(Permission.class, permissionHook); - permissionHook.getExecutor().close(); + permissionHook.getExecutor().shutdown(); permissionHook = null; } diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java index 7c980fef..55c9b686 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/vault/VaultPermissionHook.java @@ -50,7 +50,7 @@ import org.bukkit.entity.Player; import java.util.Arrays; import java.util.UUID; -import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** @@ -77,7 +77,7 @@ public class VaultPermissionHook extends AbstractVaultPermission { private final LPBukkitPlugin plugin; // an executor for Vault modifications. - private final Executor executor; + private final ExecutorService executor; public VaultPermissionHook(LPBukkitPlugin plugin) { this.plugin = plugin;