File tree Expand file tree Collapse file tree
src/main/java/com/georgev22/voterewards/utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ private void downloadLatest(@Nullable Player player) {
137137 MinecraftUtils .msg (player , "&e&lUpdater &8» &6New stable version is downloading (&c" + onlineVersion + "&6)!" );
138138 File tempFile = new File (voteRewardPlugin .getDataFolder ().getParentFile ().getAbsolutePath (), "VoteRewards-" + onlineVersion + ".jar.temp" );
139139 try {
140- HttpsURLConnection httpsURLConnection = (HttpsURLConnection ) new URL ("https://github.com/GeorgeV220/VoteRewards/releases/download/" + onlineVersion + "/VoteRewards-" + onlineVersion + ".jar" ).openConnection ();
140+ HttpsURLConnection httpsURLConnection = (HttpsURLConnection ) new URL ("https://github.com/GeorgeV220/VoteRewards/releases/download/" + onlineVersion + "/VoteRewards-" + onlineVersion . replace ( "v" , "" ) + ".jar" ).openConnection ();
141141 ReadableByteChannel rbc = Channels .newChannel (httpsURLConnection .getInputStream ());
142142 FileOutputStream fileOutputStream = new FileOutputStream (tempFile );
143143 fileOutputStream .getChannel ().transferFrom (rbc , 0 , Long .MAX_VALUE );
You can’t perform that action at this time.
0 commit comments