Advertisement
Guest User

roll.java

a guest
Mar 17th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. import org.jibble.pircbot.*;
  2. import java.util.Random;
  3.  
  4. public class roll{
  5.     public roll(String Initiator){
  6.         int InRoll = generator.nextInt(13);
  7.             if(InRoll.equals(0)){
  8.                 InRoll = 2;
  9.                 return InRoll;
  10.             }else if(InRoll.equals(1)){
  11.                 InRoll = 2;
  12.                 return InRoll;
  13.             }else{
  14.                 return InRoll;
  15.             }
  16.         }
  17.         public void onMessage(String channel, String sender, String login, String hostname, String message){
  18.             if(message.equalsIgnoreCase("!accept")){
  19.                 String Op = sender;
  20.                 return Op;
  21.                 int OpRoll = generator.nextInt(13);
  22.                 if(InRoll.equals(0)){
  23.                     OpRoll = 2;
  24.                     return OpRoll;
  25.                 }else if(InRoll.equals(1)){
  26.                     OpRoll = 2;
  27.                     return OpRoll;
  28.                 }else{
  29.                     return OpRoll;
  30.             }
  31.             }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement