Skip to content

Commit 3865364

Browse files
Update Match.java
1 parent 089c823 commit 3865364

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/me/lrxh/practice/match/Match.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ public void setupPlayer(Player player) {
184184
// Set the player's max damage ticks
185185
player.setMaximumNoDamageTicks(getKit().getGameRules().getHitDelay());
186186

187+
// Set the player's knockback
188+
KnockbackUtil.setKnockback(gamePlayer.getPlayer(), kit.getGameRules().getKnockbackProfile());
189+
187190
// If the player has no kits, apply the default kit, otherwise
188191
// give the player a list of kit books to choose from
189192
if (!getKit().getGameRules().isSumo()) {
@@ -328,10 +331,6 @@ public void onRoundStart() {
328331
// Reset each game participant
329332
for (GameParticipant<MatchGamePlayer> gameParticipant : getParticipants()) {
330333
gameParticipant.reset();
331-
// if (Practice.getInstance().getSpigotHandler() == null) return;
332-
if (kit.getKnockbackProfile() != null) {
333-
KnockbackUtil.setKnockback(gamePlayer.getPlayer(), kit.getKnockbackProfile());
334-
}
335334
}
336335
}
337336

0 commit comments

Comments
 (0)