Guest User

Untitled

a guest
Nov 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. /**
  2.  *
  3.  * @author Flav
  4.  */
  5. public class Sample extends Client {
  6.     public Sample() {
  7.         connect(RemoteEndpoint.DE);
  8.         login("Nickname", "Passwort", "Channel");
  9.     }
  10.  
  11.     public void onReceive(String packet) {
  12.     }
  13.  
  14.     public void onConnectingFailed() {
  15.         System.out.println("Es konnte keine Verbindung hergestellt werden.");
  16.     }
  17.  
  18.     public void onConnectionLost() {
  19.         System.out.println("Die Verbindung wurde unterbrochen.");
  20.     }
  21.  
  22.     public static void main(String[] args) {
  23.         new Sample();
  24.     }
  25. }
Add Comment
Please, Sign In to add comment