add 'forecast' to da text

This commit is contained in:
Chayapak 2023-04-05 13:09:33 +07:00
parent 4b7a1bb595
commit 8196c5b29c

View file

@ -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),