Skip to content

Commit d2b659e

Browse files
committed
fix(Updater): Updater URL
Fixed updater URL
1 parent 29631e2 commit d2b659e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/com/georgev22/voterewards/utilities

src/main/java/com/georgev22/voterewards/utilities/Updater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)