Fix formatting issue in with comma-separated lists (#4157)
This commit is contained in:
parent
f4fe8808a4
commit
d00b90cd61
|
@ -72,7 +72,7 @@ public class Commandptime extends EssentialsLoopCommand {
|
|||
}
|
||||
}
|
||||
|
||||
final StringJoiner joiner = new StringJoiner(",");
|
||||
final StringJoiner joiner = new StringJoiner(", ");
|
||||
loopOnlinePlayersConsumer(server, sender, false, true, args.length > 1 ? args[1] : sender.getSelfSelector(), player -> {
|
||||
setUserTime(player, ticks, !fixed);
|
||||
joiner.add(player.getName());
|
||||
|
|
|
@ -70,7 +70,7 @@ public class Commandpweather extends EssentialsLoopCommand {
|
|||
throw new NotEnoughArgumentsException(tl("pWeatherInvalidAlias"));
|
||||
}
|
||||
|
||||
final StringJoiner joiner = new StringJoiner(",");
|
||||
final StringJoiner joiner = new StringJoiner(", ");
|
||||
loopOnlinePlayersConsumer(server, sender, false, true, args.length > 1 ? args[1] : sender.getSelfSelector(), player -> {
|
||||
setUserWeather(player, weather);
|
||||
joiner.add(player.getName());
|
||||
|
|
|
@ -80,7 +80,7 @@ public class Commandtime extends EssentialsCommand {
|
|||
}
|
||||
}
|
||||
|
||||
final StringJoiner joiner = new StringJoiner(",");
|
||||
final StringJoiner joiner = new StringJoiner(", ");
|
||||
for (final World world : worlds) {
|
||||
long time = world.getTime();
|
||||
if (!add) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public class Commandunlimited extends EssentialsCommand {
|
|||
if (items.isEmpty()) {
|
||||
output.append(tl("none"));
|
||||
}
|
||||
final StringJoiner joiner = new StringJoiner(",");
|
||||
final StringJoiner joiner = new StringJoiner(", ");
|
||||
for (final Material material : items) {
|
||||
joiner.add(material.toString().toLowerCase(Locale.ENGLISH).replace("_", ""));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue