Add 5 seconds of invincibility for the reviving player.

master_event
sigonasr2 11 years ago
parent 76b2ece1d0
commit 482e1814dd
  1. 1
      BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java

@ -1505,6 +1505,7 @@ public String convertToItemName(String val) {
}
}
//p.sendMessage("Got 7.");
p.setNoDamageTicks(100); //Give 5 seconds of invincibility to recuperate.
Bukkit.broadcastMessage(ChatColor.GREEN+p.getName()+ChatColor.WHITE+" decided to revive.");
} else {
p.sendMessage("You cannot revive. You need to have $"+df.format(finalcost)+" to do so.");

Loading…
Cancel
Save