Skip to content

Commit

Permalink
Merge pull request #245 from Diet-Cola/ep-add-health
Browse files Browse the repository at this point in the history
Add pearl health to /ep locate
  • Loading branch information
okx-code committed Jun 9, 2024
2 parents bf0147a + 5c614e9 commit d414ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Lang
public static final String pearlCantHold = "<b>Pearled players can't pick up pearls.";
public static final String pearlMotd2 = "<i>Type \"<c>/pp locate<i>\" to locate your pearl.";
public static final String pearlNotExiled = "<i>You are not pearled.";
public static final String pearlPearlIsHeld = "<i>Your pearl is held by <a>%s <n>[%d %d %d %s]";
public static final String pearlPearlIsHeld = "<i>Your pearl is held by <a>%s <n>[%d %d %d %s]<i> at <a>%d <i>health!";
public static final String pearlYouBound = "<g>You've bound <c>%s <g>to a pearl!";
public static final String pearlYouWereBound = "<b>You've been bound to a pearl by <c>%s";
public static final String pearlYouWereFreed = "<g>You've been freed!";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public void performBroadcast() {
Location l = getHolder().getLocation();
String name = getHolder().getName();
if (getPlayer() != null) {
getPlayer().sendMessage(ChatUtils.parseColor(String.format(Lang.pearlPearlIsHeld, name, l.getBlockX(), l.getBlockY(), l.getBlockZ(), l.getWorld().getName())));
getPlayer().sendMessage(ChatUtils.parseColor(String.format(Lang.pearlPearlIsHeld, name, l.getBlockX(), l.getBlockY(), l.getBlockZ(), l.getWorld().getName(), getHealthPercent())));
}
for(BroadcastListener b : bcastListeners) {
b.broadcast(this);
Expand Down

0 comments on commit d414ff2

Please sign in to comment.