From 151fb08db89a094db832e893ddb09c7ada604105 Mon Sep 17 00:00:00 2001 From: Rothes <449181985@qq.com> Date: Fri, 28 Jan 2022 13:40:39 +0800 Subject: [PATCH] Fix PlaceholderExpansion may not unregistered --- .../placeholderapi/expansion/manager/LocalExpansionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java index ff9de96..e8d3fa2 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java @@ -286,7 +286,7 @@ public final class LocalExpansionManager implements Listener { @ApiStatus.Internal public boolean unregister(@NotNull final PlaceholderExpansion expansion) { - if (expansions.remove(expansion.getIdentifier()) == null) { + if (expansions.remove(expansion.getIdentifier().toLowerCase()) == null) { return false; }