mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 12:37:56 +01:00
Reverted last commit
This commit is contained in:
parent
0928b54d90
commit
3682fbf531
@ -6,12 +6,15 @@ 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