9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-27 10:59:14 +00:00

PlayerCosmeticRemoveEvent is now called

This commit is contained in:
LoJoSho
2023-01-05 10:41:14 -06:00
parent fc21381314
commit 97bf39da9c

View File

@@ -113,7 +113,7 @@ public class CosmeticUser {
public void removeCosmeticSlot(CosmeticSlot slot) {
// API
PlayerCosmeticEquipEvent event = new PlayerCosmeticEquipEvent(this, getCosmetic(slot));
PlayerCosmeticRemoveEvent event = new PlayerCosmeticRemoveEvent(this, getCosmetic(slot));
Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) {
return;