autoupdate
-
create a file somewhere with current version of script, buy a server, upload a file to server with latest version, use bufferedreader to read .txt file with latest version and compare them with located on pc, and if version on pc and on server is different - download update
-
create a file somewhere with current version of script, buy a server, upload a file to server with latest version, use bufferedreader to read .txt file with latest version and compare them with located on pc, and if version on pc and on server is different - download update
@deleted said in autoupdate:
create a file somewhere with current version of script, buy a server, upload a file to server with latest version, use bufferedreader to read .txt file with latest version and compare them with located on pc, and if version on pc and on server is different - download update
why would you buy a server for a blockgame hax skript, github exists.
-
@some-one skid this :
function _runUpdater() {
try {
["Core", script.scriptName].forEach(function (n, i) {
if (([coreAutoUpdate, scriptAutoUpdate][i] !== false) && (_log[n] === undefined)) {
_updating = n; _log[n] = false;
if ((_response = HttpUtils.get("https://dyskord.cc/check?name=" + n + "&ver=" + [coreVersion, script.scriptVersion][i])) && _response[0] != "{") {
HttpUtils.download("https://raw.githubusercontent.com/CzechHek/Core/master/" + ["Core.lib", "Scripts/" + n + ".js"][i], [new File(LiquidBounce.fileManager.dir, "scripts/Core.lib"), script.getScriptFile()][i]);
showMessage("Automatically updated " + n + " " + [coreVersion, script.scriptVersion][i] + " to " + _response, "Core Updater");
_isLatest = false; _log[n] = true;
}
} else _log[n] = _log[n] || false;
});
} catch (e) {
print("Couldn't check", _updating, "for updates!", e);
_log[_updating] = e.getMessage();
if (_log[script.scriptName] === undefined) _runUpdater();
};}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login