Skip to content

Commit

Permalink
update plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowballXueQiu committed Jul 6, 2024
1 parent ca3e6b7 commit 6a48b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>cc.vastsea</groupId>
<artifactId>HealthBar</artifactId>
<version>1.2</version>
<version>1.3</version>
<name>HealthBar</name>
<description>A Spigot plugin to display the health of attacked entities using a boss bar</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
Entity damager = event.getDamager();
if (!(damager instanceof Player player)) return;

BossBarRecord bossBarRecord = bossBars.computeIfAbsent(damagee.getUniqueId(), uuid -> new BossBarRecord(uuid));
BossBarRecord bossBarRecord = bossBars.computeIfAbsent(damagee.getUniqueId(), BossBarRecord::new);
bossBarRecord.bossBar.addPlayer(player);
setBossBar(bossBarRecord.bossBar, damagee, event.getDamage());
resetBossBarTimer(damagee.getUniqueId());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: HealthBar
main: cc.vastsea.healthbar.HealthBarPlugin
version: 1.2
version: 1.3
description: A Spigot plugin to display the health of attacked entities using a boss bar
author: Snowball_233, zrll_
api-version: 1.16.4

0 comments on commit 6a48b68

Please sign in to comment.