add 'forecast' to da text
This commit is contained in:
parent
4b7a1bb595
commit
8196c5b29c
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class WeatherCommand implements Command {
|
||||||
final String time = formatter.print(dateTime);
|
final String time = formatter.print(dateTime);
|
||||||
|
|
||||||
final Component component = Component.translatable(
|
final Component component = Component.translatable(
|
||||||
"Weather for %s, %s:\n%s, feels like %s\nTime: %s",
|
"Weather forecast for %s, %s:\n%s, feels like %s\nTime: %s",
|
||||||
Component.text(jsonObject.get("location").getAsJsonObject().get("name").getAsString()).color(NamedTextColor.AQUA),
|
Component.text(jsonObject.get("location").getAsJsonObject().get("name").getAsString()).color(NamedTextColor.AQUA),
|
||||||
Component.text(jsonObject.get("location").getAsJsonObject().get("country").getAsString()).color(NamedTextColor.AQUA),
|
Component.text(jsonObject.get("location").getAsJsonObject().get("country").getAsString()).color(NamedTextColor.AQUA),
|
||||||
Component.text(jsonObject.get("current").getAsJsonObject().get("temp_c").getAsString() + "°C").color(NamedTextColor.GOLD),
|
Component.text(jsonObject.get("current").getAsJsonObject().get("temp_c").getAsString() + "°C").color(NamedTextColor.GOLD),
|
||||||
|
|
Loading…
Reference in a new issue