Skip to content

Commit

Permalink
Update ArenaEvents.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagggpixel authored Oct 16, 2023
1 parent 31101c8 commit 580c156
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/plugily/projects/thebridge/arena/ArenaEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,13 @@ public void onBowShot(EntityShootBowEvent event) {
if (user.getKit().getOptionalConfiguration("bow-cooldown") != null) {
cooldown = Math.max(0, (int) user.getKit().getOptionalConfiguration("bow-cooldown"));
}
user.setCooldown("bow_shot", cooldown);
Player player = (Player) event.getEntity();
plugin
.getBukkitHelper()
.applyActionBarCooldown(player, cooldown);
if (cooldown != 0) {
user.setCooldown("bow_shot", cooldown);
Player player = (Player) event.getEntity();
plugin
.getBukkitHelper()
.applyActionBarCooldown(player, cooldown);
}
if(event.getBow() != null) {
VersionUtils.setDurability(event.getBow(), (short) 0);
}
Expand Down

0 comments on commit 580c156

Please sign in to comment.