mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Removed unneeded instanceof
This commit is contained in:
parent
c3ba54a0ce
commit
bdcc2f644b
@ -22,10 +22,8 @@ public class HardcoreListener implements Listener {
|
|||||||
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)) {
|
if (!Permissions.getInstance().hardcoremodeBypass(player)) {
|
||||||
if (player.getKiller() instanceof Player) {
|
if (Config.getInstance().getHardcoreVampirismEnabled()) {
|
||||||
if (Config.getInstance().getHardcoreVampirismEnabled()) {
|
Hardcore.invokeVampirism(player.getKiller(), player);
|
||||||
Hardcore.invokeVampirism(player.getKiller(), player);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Hardcore.invokeStatPenalty(player);
|
Hardcore.invokeStatPenalty(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user