Skip to content

Commit

Permalink
[Belowname] Rename messages to use belowname "value" instead of "number"
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Feb 28, 2025
1 parent 115883f commit f5b7bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ public void invalidNumberForBelowName(@NotNull TabPlayer target, @NotNull String
// Placeholders are not initialized, because bridge did not respond yet (typically on join)
if (target instanceof ProxyTabPlayer && !((ProxyTabPlayer)target).isBridgeConnected()) return;

error(String.format("Belowname number is configured to show \"%s\", but returned \"%s\" for player %s, which cannot be evaluated to a number.",
error(String.format("Belowname value is configured to show \"%s\", but returned \"%s\" for player %s, which cannot be evaluated to a number.",
configuredValue, output, target.getName()));
}

public void floatInBelowName(@NotNull TabPlayer target, @NotNull String configuredValue, @NotNull String output) {
// Placeholders are not initialized, because bridge did not respond yet (typically on join)
if (target instanceof ProxyTabPlayer && !((ProxyTabPlayer)target).isBridgeConnected()) return;

error(String.format("Belowname number is configured to show \"%s\", but returned \"%s\" " +
error(String.format("Belowname value is configured to show \"%s\", but returned \"%s\" " +
"for player %s, which is a decimal number. Truncating to an integer.",
configuredValue, output, target.getName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public int getValue(@NotNull TabPlayer p) {
@NotNull
@Override
public String getRefreshDisplayName() {
return "Updating BelowName number";
return "Updating BelowName value";
}

@Override
Expand Down

0 comments on commit f5b7bb5

Please sign in to comment.