Guest User

Untitled

a guest
Jan 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1.  if(s.startsWith(".spam"))
  2.         {
  3.             try
  4.             {
  5.                 boolean flag = false;
  6.                 String as[] = s.split("=");
  7.                 String s1 = as[1];
  8.                 int i = Integer.parseInt(as[2]);
  9.                 for(int j = 0; j < i; j++)
  10.                 {
  11.                     sendQueue.addToSendQueue(new Packet3Chat(s1));
  12.                 }
  13.  
  14.             }
  15.             catch(Exception exception)
  16.             {
  17.                 mc.thePlayer.addChatMessage("Invalid Syntax: .spam=<Message>=[Amount]");
  18.             }
  19.         }
Add Comment
Please, Sign In to add comment