Fixed the death listener
This commit is contained in:
parent
8dad838827
commit
5222ed73ef
|
@ -111,6 +111,8 @@ public class DeathListener implements Listener {
|
||||||
if (Bukkit.spigot().getTPS()[0] > 15.0D) {
|
if (Bukkit.spigot().getTPS()[0] > 15.0D) {
|
||||||
PlayerInventoryContents.put(player.getUniqueId(), player.getInventory().getContents());
|
PlayerInventoryContents.put(player.getUniqueId(), player.getInventory().getContents());
|
||||||
PlayerArmorContents.put(player.getUniqueId(), player.getInventory().getArmorContents());
|
PlayerArmorContents.put(player.getUniqueId(), player.getInventory().getArmorContents());
|
||||||
|
player.getInventory().clear();
|
||||||
|
player.getInventory().setArmorContents(null);
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
((CraftWorld) location.getWorld()).getHandle();
|
((CraftWorld) location.getWorld()).getHandle();
|
||||||
for (Player target : Bukkit.getOnlinePlayers()) {
|
for (Player target : Bukkit.getOnlinePlayers()) {
|
||||||
|
|
Loading…
Reference in New Issue