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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user