9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 03:49:19 +00:00

Forgot to remove test listener

This commit is contained in:
HeroBrineGoat
2022-01-28 17:29:56 -05:00
parent 412688eebc
commit 7a7ddf09fb
2 changed files with 0 additions and 16 deletions

View File

@@ -82,21 +82,6 @@ public class ClickListener implements Listener {
this.userManager.get(player.getUniqueId()).ifPresent(this::doRunnable);
}
// todo - REMOVE!!!
@EventHandler
public void onCosmeticEquip(final CosmeticChangeEvent event) {
final CosmeticItem previous = event.getCosmeticItem();
event.setCosmeticItem(
new CosmeticItem(
ItemBuilder.from(Material.DIAMOND_BLOCK).build(),
"random-id",
previous.getType(),
true,
Color.fromRGB(50, 100, 150).asRGB()
)
);
}
private void fixInventory(final Player player, final Set<Integer> slotsClicked, final Inventory inventory) {
final Optional<User> optionalUser = this.userManager.get(player.getUniqueId());