Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.jibble.pircbot.*;
- import java.util.Random;
- public class roll{
- public roll(String Initiator){
- int InRoll = generator.nextInt(13);
- if(InRoll.equals(0)){
- InRoll = 2;
- return InRoll;
- }else if(InRoll.equals(1)){
- InRoll = 2;
- return InRoll;
- }else{
- return InRoll;
- }
- }
- public void onMessage(String channel, String sender, String login, String hostname, String message){
- if(message.equalsIgnoreCase("!accept")){
- String Op = sender;
- return Op;
- int OpRoll = generator.nextInt(13);
- if(InRoll.equals(0)){
- OpRoll = 2;
- return OpRoll;
- }else if(InRoll.equals(1)){
- OpRoll = 2;
- return OpRoll;
- }else{
- return OpRoll;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement