Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Version Checker

Featured Replies

Enjoy :)
 

	/**
	 * @author Reid (PurpleKush)
	 * @param currVersion
	 * @param txtLoc
	 * @throws IOException
	 */
	public static void versionCheck(final String currVersion,
		final String txtLoc) throws IOException {
		final URL url = new URL(txtLoc);
		final BufferedReader file = new BufferedReader(new InputStreamReader(url.openStream()));
		final String onlineVersion = file.readLine();
		file.close();
		if (!onlineVersion.equals(currVersion)) {
			System.out.println("Version is Out of date");
			JOptionPane.showMessageDialog(null,"Script is Out of date, get latest jar from thread!!!");
		} else {
			System.out.println("Version is Up to date");
		}
	}

 

uh

how do I run dat doe

call versionCheck(final String currVersion, final String txtLoc) where currVersion is the local script's current version, and txtLoc is the location of an online .txt file containing only the version number (or a blank HTML site containing the same thing).

Poor implementation, imo. Should be a boolean returning if it's current, not a void.

Edited by Toph

  • Author

call versionCheck(final String currVersion, final String txtLoc) where currVersion is the local script's current version, and txtLoc is the location of an online .txt file containing only the version number (or a blank HTML site containing the same thing).

Poor implementation, imo. Should be a boolean returning if it's current, not a void.

 

Agreed, this was one of my first java project lol i haven't updated it

soo how do I use this? I have own website where I can host a html file containing the current version, but how do I get it to this script? Do I have to replace te textLoc and  currVersion with something? please someone help me

soo how do I use this? I have own website where I can host a html file containing the current version, but how do I get it to this script? Do I have to replace te textLoc and  currVersion with something? please someone help me

txtLoc is the location of the file with the version and current version is....the current version

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.