Actually fixed Hardcore

This commit is contained in:
bm01 2012-05-01 10:49:36 +02:00
parent 5a10339adc
commit 0928b54d90

View File

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