Item drop bug

This commit is contained in:
Debucquoy Anthony 2024-01-31 12:27:38 +01:00
parent 8bf35896f4
commit 629695ac21
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -20,6 +20,9 @@ public class BanHourly implements Listener{
@EventHandler @EventHandler
public void died(PlayerDeathEvent e){ public void died(PlayerDeathEvent e){
DatabaseManager.getInstance().setDeath(e.getPlayer().getUniqueId()); DatabaseManager.getInstance().setDeath(e.getPlayer().getUniqueId());
e.setKeepInventory(true);
e.setKeepLevel(false);
e.getDrops().clear();
e.getPlayer().kick(Component.text("Vous etes mort dans la dernière heure... Patientez la prochaine!"), Cause.BANNED); e.getPlayer().kick(Component.text("Vous etes mort dans la dernière heure... Patientez la prochaine!"), Cause.BANNED);
} }
} }