Commit 3865364 1 parent 089c823 commit 3865364 Copy full SHA for 3865364
File tree 1 file changed +3
-4
lines changed
src/main/java/me/lrxh/practice/match
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ public void setupPlayer(Player player) {
184
184
// Set the player's max damage ticks
185
185
player .setMaximumNoDamageTicks (getKit ().getGameRules ().getHitDelay ());
186
186
187
+ // Set the player's knockback
188
+ KnockbackUtil .setKnockback (gamePlayer .getPlayer (), kit .getGameRules ().getKnockbackProfile ());
189
+
187
190
// If the player has no kits, apply the default kit, otherwise
188
191
// give the player a list of kit books to choose from
189
192
if (!getKit ().getGameRules ().isSumo ()) {
@@ -328,10 +331,6 @@ public void onRoundStart() {
328
331
// Reset each game participant
329
332
for (GameParticipant <MatchGamePlayer > gameParticipant : getParticipants ()) {
330
333
gameParticipant .reset ();
331
- // if (Practice.getInstance().getSpigotHandler() == null) return;
332
- if (kit .getKnockbackProfile () != null ) {
333
- KnockbackUtil .setKnockback (gamePlayer .getPlayer (), kit .getKnockbackProfile ());
334
- }
335
334
}
336
335
}
337
336
You can’t perform that action at this time.
0 commit comments