mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
Fix update checker using wrong version string
This commit is contained in:
@@ -70,7 +70,7 @@ public class HuskSyncCommand extends Command implements TabExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check Bungee servers needing updates and send message
|
// Check Bungee servers needing updates and send message
|
||||||
BungeeUpdateChecker proxyUpdateChecker = new BungeeUpdateChecker(ProxyServer.getInstance().getVersion());
|
BungeeUpdateChecker proxyUpdateChecker = new BungeeUpdateChecker(plugin.getDescription().getVersion());
|
||||||
if (proxyUpdateChecker.isUpToDate() && updatesNeeded == 0) {
|
if (proxyUpdateChecker.isUpToDate() && updatesNeeded == 0) {
|
||||||
sender.sendMessage(new MineDown("[HuskSync](#00fb9a bold) [| HuskSync is up-to-date, running Version " + proxyUpdateChecker.getLatestVersion() + "](#00fb9a)").toComponent());
|
sender.sendMessage(new MineDown("[HuskSync](#00fb9a bold) [| HuskSync is up-to-date, running Version " + proxyUpdateChecker.getLatestVersion() + "](#00fb9a)").toComponent());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user