Commit b567175 1 parent c196cb6 commit b567175 Copy full SHA for b567175
File tree 1 file changed +4
-4
lines changed
src/main/java/me/lrxh/practice/match
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 36
36
import java .util .List ;
37
37
import java .util .UUID ;
38
38
import java .util .stream .Collectors ;
39
+ import java .lang .reflect .Field ;
39
40
40
41
@ Getter
41
42
@ Setter
@@ -329,10 +330,9 @@ public void onRoundStart() {
329
330
for (GameParticipant <MatchGamePlayer > gameParticipant : getParticipants ()) {
330
331
gameParticipant .reset ();
331
332
// if (Practice.getInstance().getSpigotHandler() == null) return;
332
- // if (kit.getKnockbackProfile() == null) return;
333
- // for (GamePlayer gamePlayer : gameParticipant.getPlayers()) {
334
- // Practice.getInstance().getSpigotHandler().getKnockback().setKnockback(gamePlayer.getPlayer(), kit.getKnockbackProfile());
335
- // }
333
+ if (kit .getKnockbackProfile () != null ) {
334
+ KnockbackUtil .setKnockback (gamePlayer .getPlayer (), kit .getKnockbackProfile ());
335
+ }
336
336
}
337
337
}
338
338
You can’t perform that action at this time.
0 commit comments