File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public void onPlayerHitEvent(EntityDamageByEntityEvent event) {
148148 if (event .getEntity () instanceof Player target && event .getDamager () instanceof Player damager ) {
149149 Profile targetProfile = plugin .getAPI ().getProfile (target );
150150 Profile playerProfile = plugin .getAPI ().getProfile (damager .getUniqueId ());
151- if (targetProfile .getState () == ProfileState .IN_GAME && playerProfile .getState ().equals (ProfileState .IN_GAME ) && event .isCritical () && target .getAttackCooldown () == 1.0 ) {
151+ if (targetProfile .getState () == ProfileState .IN_GAME && playerProfile .getState ().equals (ProfileState .IN_GAME ) && event .isCritical () && damager .getAttackCooldown () == 1.0 ) {
152152 Match match = targetProfile .getMatch ();
153153 Participant opponent = match .getParticipant (target .getUniqueId ());
154154 match .getParticipant (damager .getUniqueId ()).handleHit (opponent );
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public void load() {
7575 DataDocument kitStatistics = dataDocument .getDataDocument ("kitData" );
7676 DataDocument settings = dataDocument .getDataDocument ("settings" );
7777
78+
79+
7880 for (Kit kit : plugin .getKitManager ().kits ) {
7981 DataDocument kitDocument = kitStatistics .getDataDocument (kit .getName ());
8082 if (kitDocument == null ) return ;
Original file line number Diff line number Diff line change 11name : Neptune
2- version : ' 1.5 '
2+ version : ' 1.6 '
33main : dev.lrxh.neptune.Neptune
44api-version : 1.16
55softdepend :
You can’t perform that action at this time.
0 commit comments