mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-12-27 19:37:43 +01:00
Fix PlaceholderExpansion may not unregistered
This commit is contained in:
parent
cd9074203c
commit
151fb08db8
@ -286,7 +286,7 @@ public final class LocalExpansionManager implements Listener {
|
|||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public boolean unregister(@NotNull final PlaceholderExpansion expansion) {
|
public boolean unregister(@NotNull final PlaceholderExpansion expansion) {
|
||||||
if (expansions.remove(expansion.getIdentifier()) == null) {
|
if (expansions.remove(expansion.getIdentifier().toLowerCase()) == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user