Skip to content

Commit

Permalink
Allow multiple CommandItems to be kept on death.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 21, 2016
1 parent 035453d commit e75fd69
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit e75fd69

Please sign in to comment.