@@ -0,0 +1,690 @@
+package vg.civcraft.mc.civmodcore.events;%0A%0Aimport java.util.Objects;%0Aimport org.bukkit.event.player.PlayerInteractEvent;%0Aimport org.bukkit.inventory.ItemStack;%0Aimport org.jetbrains.annotations.NotNull;%0A%0Apublic final class EventUtils %7B%0A%0A%09/**%0A%09 * Updates the item used in the given interact event to the given item. This utility assumes that the interaction%0A%09 * was done with the player's hands.%0A%09 *%0A%09 * @param event The interact event.%0A%09 * @param item The item to set.%0A%09 */%0A%09public static void setPlayerInteractItem(@NotNull final PlayerInteractEvent event,%0A%09%09%09%09%09%09%09%09%09%09%09 final ItemStack item) %7B%0A%09%09event.getPlayer().getInventory().setItem(Objects.requireNonNull(event.getHand()), item);%0A%09%7D%0A%0A%7D%0A

Add EventUtils