From dc48822a070240c22b78801f7ca8847f4e2dd480 Mon Sep 17 00:00:00 2001 From: Brianna Date: Fri, 26 Apr 2019 04:17:11 -0400 Subject: [PATCH] Version --- src/main/java/com/songoda/update/SongodaUpdate.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/songoda/update/SongodaUpdate.java b/src/main/java/com/songoda/update/SongodaUpdate.java index bd7138be..6daedb55 100644 --- a/src/main/java/com/songoda/update/SongodaUpdate.java +++ b/src/main/java/com/songoda/update/SongodaUpdate.java @@ -42,8 +42,9 @@ public class SongodaUpdate { private void update(Plugin plugin) { try { - URL url = new URL("http://update.songoda.com/index.php?plugin=" + plugin.getSongodaId() + - "&version=" + plugin.getJavaPlugin().getDescription().getVersion()); + URL url = new URL("http://update.songoda.com/index.php?plugin=" + plugin.getSongodaId() + + "&version=" + plugin.getJavaPlugin().getDescription().getVersion() + + "&updaterVersion=" + version); URLConnection urlConnection = url.openConnection(); InputStream is = urlConnection.getInputStream(); InputStreamReader isr = new InputStreamReader(is);