Skip to content

Commit b0d14c6

Browse files
committed
Add utility methods to Client to determine whether the client is a server query or a regular client.
1 parent a8e8bb3 commit b0d14c6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • src/main/java/com/github/theholywaffle/teamspeak3/api/wrapper

src/main/java/com/github/theholywaffle/teamspeak3/api/wrapper/Client.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ public boolean isRecording() {
151151
return getBoolean(ClientProperty.CLIENT_IS_RECORDING);
152152
}
153153

154+
public boolean isRegularClient() {
155+
return getType() == 0;
156+
}
157+
158+
public boolean isServerQueryClient() {
159+
return getType() == 1;
160+
}
161+
154162
public boolean isTalking() {
155163
return getBoolean("client_flag_talking");
156164
}

0 commit comments

Comments
 (0)