@@ -302,6 +305,7 @@ public class LocalTeamspeakClientSocket
}
serverId = null;
+ serverProperties = Collections.emptyMap();
remote = null;
}
@@ -375,6 +379,7 @@ public class LocalTeamspeakClientSocket
// Free stuff
serverId = null;
+ serverProperties = Collections.emptyMap();
synchronized (commandSendLock) {
@@ -780,12 +785,24 @@ public class LocalTeamspeakClientSocket
LocalTeamspeakClientSocket.super.setNickname(singleCommand.get("acn").getValue());
serverId = Integer.parseInt(singleCommand.get("virtualserver_id").getValue());
+
+ serverProperties = Collections.unmodifiableMap(singleCommand.toMap());
} catch (Exception e) {
throw new CommandProcessException(e);
}
}
}
+ /** The virtual server's properties from initserver; empty while disconnected. */
+ public Map