Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author Flav
- */
- public class Sample extends Client {
- public Sample() {
- connect(RemoteEndpoint.DE);
- login("Nickname", "Passwort", "Channel");
- }
- public void onReceive(String packet) {
- }
- public void onConnectingFailed() {
- System.out.println("Es konnte keine Verbindung hergestellt werden.");
- }
- public void onConnectionLost() {
- System.out.println("Die Verbindung wurde unterbrochen.");
- }
- public static void main(String[] args) {
- new Sample();
- }
- }
Add Comment
Please, Sign In to add comment