File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/github/elic0de/thejpspit/spigot/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments