Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IRC
- if(bcme.getMessage().contains("allsetstopatlvl")) {
- String msg[] = bcme.getMessage().split(" ");
- Data.Calculations.stopAtlvl = Integer.parseInt(msg[1]);
- this.connection.sendMessage("I will stop at lvl: "+Data.Calculations.stopAtlvl);
- }
- if(bcme.getMessage().contains(OnStart.RSN+" setstopatlvl")) {
- String msg[] = bcme.getMessage().split(" ");
- Data.Calculations.stopAtlvl = Integer.parseInt(msg[2]);
- this.connection.sendMessage("I will stop at lvl: "+Data.Calculations.stopAtlvl);
- }
- //Main
- if(Calculations.stopAtlvl > 1) {
- if(Skills.getRealLevel(Skill.Mining) >= Calculations.stopAtlvl) {
- c.sendMessage("My mining level is: "+Skills.getRealLevel(Skill.Mining)+"! stopping.", true);
- stopScript();
- }
- }
- //onstart
- public static String RSN;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement