mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Make the message differentiate between singular and plural updates avail
This commit is contained in:
parent
0f8ce0c6c3
commit
97fd3a3b5d
@ -54,7 +54,7 @@ public final class CommandECloudStatus extends PlaceholderCommand
|
|||||||
|
|
||||||
if (updateCount > 0)
|
if (updateCount > 0)
|
||||||
{
|
{
|
||||||
builder.append("&eYou have &a").append(updateCount).append("&e expansions installed that have updates available.");
|
builder.append("&eYou have &f").append(updateCount).append(updateCount > 1 ? "&e expansions" : "&e expansion").append("installed that ").append(updateCount > 1 ? "have an" : "has an").append(" update available.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Msg.msg(sender,builder.toString());
|
Msg.msg(sender,builder.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user