Item drop bug
This commit is contained in:
parent
8bf35896f4
commit
629695ac21
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user