Reverted last commit

This commit is contained in:
bm01 2012-05-01 10:51:17 +02:00
parent 0928b54d90
commit 3682fbf531

View File

@ -6,12 +6,15 @@ import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import com.gmail.nossr50.util.Hardcore;
import com.gmail.nossr50.util.Permissions;
public class HardcoreListener implements Listener {
@EventHandler()
public void PlayerDeathEvent(PlayerDeathEvent event) {
Player player = event.getEntity(); //Note this returns a Player object for this subevent
Hardcore.invokeStatPenalty(player);
if(!Permissions.getInstance().hardcoremodeBypass(player)) {
Hardcore.invokeStatPenalty(player);
}
}
}