Fix PlaceholderExpansion may not unregistered

This commit is contained in:
Rothes 2022-01-28 13:40:39 +08:00 committed by GitHub
parent cd9074203c
commit 151fb08db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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