mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Actually fixed Hardcore
This commit is contained in:
parent
5a10339adc
commit
0928b54d90
@ -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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user