Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Boolean flewOff = false;
  2. //in on loop
  3. if(flewOff = true){
  4. getBirdBack();
  5. flewOff = false;
  6. }
  7.  
  8. //on message is the only other part where flewOff is handled
  9.  
  10. public void onMessage(String message) throws InterruptedException {
  11. if (message.contains("prey")) {
  12. flewOff = true;
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement