Permalink
Browse files

Allow multiple CommandItems to be kept on death.

  • Loading branch information...
me4502 committed Dec 21, 2016
1 parent 035453d commit e75fd6991e88d23dadb2aef3f7357fd7f8621efe
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/main/java/com/sk89q/craftbook/mechanics/items/CommandItems.java
@@ -120,7 +120,6 @@ public void run () {
@Override
public void run () {
-
for(Player player : Bukkit.getOnlinePlayers()) {
if(player.getInventory().getItemInMainHand() != null)
performCommandItems(player.getInventory().getItemInMainHand(), player, null);
@@ -308,7 +307,6 @@ public void onPlayerDeath(PlayerDeathEvent event) {
its.add(ItemSyntax.getStringFromItem(stack));
items.put(event.getEntity().getName(), its);
CraftBookPlugin.inst().getPersistentStorage().set("command-items.death-items", items);
- break;
}
}
}

0 comments on commit e75fd69

Please sign in to comment.