Jump to content

Best way to know if a bot has p2p?


Recommended Posts

Posted
	private boolean isMember;
	
	@Override
	public void onStart() throws InterruptedException {
		
		isMember = askIsMember();
	}

	/**
	 * 
	 * @return <tt>Account is member</tt>
	 */
	private boolean askIsMember() {
		return JOptionPane.showConfirmDialog(bot.getCanvas(), "Are you a member?", "Membership",
				JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
	}

You're welcome. :)

  • Like 1
Posted
2 hours ago, liverare said:

	private boolean isMember;
	
	@Override
	public void onStart() throws InterruptedException {
		
		isMember = askIsMember();
	}

	/**
	 * 
	 * @return <tt>Account is member</tt>
	 */
	private boolean askIsMember() {
		return JOptionPane.showConfirmDialog(bot.getCanvas(), "Are you a member?", "Membership",
				JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
	}

You're welcome. :)

Lol thanks, dunno if this is a joke or not, but wanted an automated solution :D
 

So as I see there's no "straightforward" way doing this, will try the methods you guys mentioned, thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...