diff --git a/pom.xml b/pom.xml index 739f274..1041715 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ space.devport.wertik.firstdeathrewards FirstDeathRewards - 1.0.1 + 1.0.2 FirstDeathRewards diff --git a/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java b/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java index 1f97d61..3a335c0 100644 --- a/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java +++ b/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java @@ -25,6 +25,8 @@ public void onDeath(PlayerDeathEvent event) { event.setKeepInventory(plugin.getConfig().getBoolean("keep-inventory", false)); event.setKeepLevel(plugin.getConfig().getBoolean("keep-exp", false)); + event.getDrops().clear(); + plugin.getDataManager().getReward().give(player); } } \ No newline at end of file