Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1.  
  2. //IRC
  3. if(bcme.getMessage().contains("allsetstopatlvl")) {
  4.             String msg[] = bcme.getMessage().split(" ");
  5.            
  6.             Data.Calculations.stopAtlvl = Integer.parseInt(msg[1]);
  7.  
  8.             this.connection.sendMessage("I will stop at lvl: "+Data.Calculations.stopAtlvl);
  9.         }
  10.  
  11.         if(bcme.getMessage().contains(OnStart.RSN+" setstopatlvl")) {
  12.             String msg[] = bcme.getMessage().split(" ");
  13.            
  14.             Data.Calculations.stopAtlvl = Integer.parseInt(msg[2]);
  15.  
  16.             this.connection.sendMessage("I will stop at lvl: "+Data.Calculations.stopAtlvl);
  17.         }
  18.  
  19. //Main
  20.         if(Calculations.stopAtlvl > 1) {
  21.             if(Skills.getRealLevel(Skill.Mining) >= Calculations.stopAtlvl) {
  22.                 c.sendMessage("My mining level is: "+Skills.getRealLevel(Skill.Mining)+"! stopping.", true);
  23.                 stopScript();
  24.             }
  25.         }
  26.  
  27. //onstart
  28.  
  29.     public static String RSN;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement