Jump to content

Deadman checker


Recommended Posts

Posted (edited)
private final int[] DEADMAN_WORLDS = {317, 319, 321, 345, 352, 357, 360, 374};
private boolean isDeadman(){
	for(int i : DEADMAN_WORLDS){
		if(getBot().getWorld() == i){
			return true;
		}
	}
		
	return false;
}

Pretty simple, probs forgetting a world or new worlds will be added. Change the modifiers if necessary.

Edited by Tom
  • Like 2
Posted
private final int[] DEADMAN_WORLDS = {317, 319, 321, 345, 352, 357, 360, 374};
private boolean isDeadman(){
	for(int i : DEADMAN_WORLDS){
		if(getBot().getWorld() == i){
			return true;
		}
	}
		
	return false;
}

Pretty simple, probs forgetting a world or new worlds will be added. Change the modifiers if necessary.

 

 

Nice convention naming :doge:

 

private final int[] deadmanWorlds
 

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...