diff --git a/pom.xml b/pom.xml index 1041715..9f811fe 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ space.devport.wertik.firstdeathrewards FirstDeathRewards - 1.0.2 + 1.0.3 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 3a335c0..5583a23 100644 --- a/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java +++ b/src/main/java/space/devport/wertik/firstdeathrewards/listeners/PlayerListener.java @@ -25,7 +25,10 @@ public void onDeath(PlayerDeathEvent event) { event.setKeepInventory(plugin.getConfig().getBoolean("keep-inventory", false)); event.setKeepLevel(plugin.getConfig().getBoolean("keep-exp", false)); - event.getDrops().clear(); + if (plugin.getConfig().getBoolean("deny-drops", true)) { + event.getDrops().clear(); + event.setDroppedExp(0); + } plugin.getDataManager().getReward().give(player); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 99ce42f..601d916 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -19,6 +19,9 @@ disabled-worlds: keep-inventory: true keep-exp: true +# Deny item and exp drops? +deny-drops: true + # Rewards given to player upon death rewards: inform: