File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/main/java/me/zetastormy/akropolis/module/modules/world Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11org.gradle.caching =true
22org.gradle.parallel =true
33org.gradle.jvmargs =' -Dfile.encoding=UTF-8'
4- projectVersion =1.9.1
4+ projectVersion =1.9.2
55libsPackage =team.devblook.akropolis.libs
Original file line number Diff line number Diff line change @@ -554,11 +554,14 @@ public void onEntityDamage(EntityDamageByEntityEvent event) {
554554 return ;
555555
556556 FightModeManager fightModeManager = getPlugin ().getFightModeManager ();
557- boolean attackedInFightMode = fightModeManager .isInFightMode (player .getUniqueId ());
558- boolean attackerInFightMode = fightModeManager .isInFightMode (event .getDamager ().getUniqueId ());
559557
560- if (attackedInFightMode && attackerInFightMode ) {
561- return ;
558+ if (fightModeManager != null ) {
559+ boolean attackedInFightMode = fightModeManager .isInFightMode (player .getUniqueId ());
560+ boolean attackerInFightMode = fightModeManager .isInFightMode (event .getDamager ().getUniqueId ());
561+
562+ if (attackedInFightMode && attackerInFightMode ) {
563+ return ;
564+ }
562565 }
563566
564567 if (event .getDamager ().hasPermission (Permissions .EVENT_PLAYER_PVP .getPermission ()))
You can’t perform that action at this time.
0 commit comments