9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2025-12-28 03:19:25 +00:00

Updated to 3.2.2

This commit is contained in:
Auxilor
2021-03-04 21:42:45 +00:00
parent b03296f970
commit 491ccfee71
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
package com.willfp.ecoarmor.sets.util;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent;
import org.jetbrains.annotations.NotNull;
public class PreventSkullPlaceListener implements Listener {
/**
* Prevents placing skulls.
*
* @param event The event to listen for.
*/
@EventHandler(priority = EventPriority.HIGHEST)
public void onPlace(@NotNull final BlockPlaceEvent event) {
if (ArmorUtils.getSetOnItem(event.getItemInHand()) != null) {
event.setCancelled(true);
}
}
}

View File

@@ -1,2 +1,2 @@
version = 3.2.1
version = 3.2.2
plugin-name = EcoArmor