Don't mind me...
This commit is contained in:
@@ -2,6 +2,7 @@ package com.github.manevolent.ts3j.protocol.packet.handler;
|
||||
|
||||
import com.github.manevolent.ts3j.command.Command;
|
||||
import com.github.manevolent.ts3j.protocol.Packet;
|
||||
import com.github.manevolent.ts3j.protocol.client.ClientConnectionState;
|
||||
import com.github.manevolent.ts3j.protocol.socket.client.TeamspeakClientSocket;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -14,10 +15,16 @@ public abstract class PacketHandler {
|
||||
this.clientSocket = clientSocket;
|
||||
}
|
||||
|
||||
|
||||
public void handleConnectionStateChanging(ClientConnectionState clientConnectionState) {
|
||||
|
||||
}
|
||||
|
||||
public void onUnassigning() throws IOException {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void onAssigned() throws IOException, TimeoutException {
|
||||
|
||||
}
|
||||
|
||||
-4
@@ -14,10 +14,6 @@ public abstract class LocalClientHandler extends PacketHandler {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public void handleConnectionStateChanging(ClientConnectionState clientConnectionState) {
|
||||
|
||||
}
|
||||
|
||||
public LocalTeamspeakClientSocket getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
+3
-2
@@ -195,8 +195,9 @@ public abstract class AbstractTeamspeakClientSocket
|
||||
|
||||
PacketHandler handler = getHandler();
|
||||
|
||||
if (handler != null)
|
||||
((LocalClientHandler) handler).handleConnectionStateChanging(state);
|
||||
if (handler != null ) {
|
||||
handler.handleConnectionStateChanging(state);
|
||||
}
|
||||
|
||||
Class<? extends PacketHandler> handlerClass = getHandlerClass(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user