From 482e1814dd38858556db81380d4de6021eb7ca1e Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Mon, 18 Nov 2013 22:46:51 -0700 Subject: [PATCH] Add 5 seconds of invincibility for the reviving player. --- BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java index d0308b5..38c72a2 100644 --- a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java +++ b/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.");