Skip to content

Commit a059711

Browse files
committed
タグを表示するように
1 parent b94622a commit a059711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/github/elic0de/thejpspit/spigot/util/DownloadUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static void download(final Player player){
4141
con.setReadTimeout(15000);
4242

4343
final JsonObject json = JsonParser.parseReader(new InputStreamReader(con.getInputStream())).getAsJsonObject();
44+
final String tagName = json.get("tag_name").getAsString();
4445

4546
if (json.has("assets")) {
4647
final JsonArray assets = json.get("assets").getAsJsonArray();
@@ -54,7 +55,7 @@ public static void download(final Player player){
5455
urlConnection.setRequestProperty("Accept", "application/octet-stream");
5556

5657
player.sendMessage(
57-
ChatColor.GREEN + "[TheJpsPit] " + ASSETS_NAME + " をダウンロードします");
58+
ChatColor.GREEN + "[TheJpsPit] " + ASSETS_NAME + " " + tagName + " をダウンロードします");
5859

5960
new BukkitRunnable() {
6061
@Override

0 commit comments

Comments
 (0)