diff --git a/pom.xml b/pom.xml
index 6c5d924..8bdc615 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
us.shirecraft
EasterEggHunt
- 0.4.12-SNAPSHOT
+ 0.4.13-SNAPSHOT
17
diff --git a/src/main/java/us/shirecraft/easteregghunt/EggListener.java b/src/main/java/us/shirecraft/easteregghunt/EggListener.java
index 03a0223..4dd431d 100644
--- a/src/main/java/us/shirecraft/easteregghunt/EggListener.java
+++ b/src/main/java/us/shirecraft/easteregghunt/EggListener.java
@@ -12,11 +12,9 @@
import org.bukkit.event.entity.EntityPickupItemEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.metadata.FixedMetadataValue;
-import us.shirecraft.easteregghunt.halloween.BloodSpider;
import java.util.Objects;
import java.util.Random;
-import java.util.stream.Collectors;
public class EggListener implements Listener {
public EggListener(EasterEggHunt plugin) {
@@ -52,7 +50,7 @@ public void onPlayerPickUpEgg(EntityPickupItemEvent ev) {
if(!regionsEggWasFoundIn.contains(regionName))
{
player.sendMessage("ยง4 ** Sorry, there was a problem with the treasure you found and it has not been counted.");
-
+ ev.getItem().remove();
ev.setCancelled(true);
return;
}
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 0de4b01..79761d5 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,6 +1,6 @@
main: us.shirecraft.easteregghunt.EasterEggHunt
name: EasterEggHunt
-version: '0.4.12-SNAPSHOT'
+version: '0.4.13-SNAPSHOT'
description: "Treasure hunt using WorldGuard regions"
api-version: 1.19
load: POSTWORLD