Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pearl health to /ep locate #245

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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