Skip to content

Commit 5ec0084

Browse files
committed
Client: Add getter for estimated client location
1 parent 177cf46 commit 5ec0084

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ public int getDatabaseId() {
9898
return getInt(ClientProperty.CLIENT_DATABASE_ID);
9999
}
100100

101+
public String getEstimatedLocation() {
102+
return get(ClientProperty.CLIENT_ESTIMATED_LOCATION);
103+
}
104+
101105
public long getIconId() {
102106
return getLong(ClientProperty.CLIENT_ICON_ID);
103107
}

src/main/java/com/github/theholywaffle/teamspeak3/commands/ClientCommands.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static Command clientKick(ReasonIdentifier reason, String reasonMessage,
9494
}
9595

9696
public static Command clientList() {
97-
CommandBuilder builder = new CommandBuilder("clientlist", 10);
97+
CommandBuilder builder = new CommandBuilder("clientlist", 11);
9898
builder.add(new OptionParam("uid"));
9999
builder.add(new OptionParam("away"));
100100
builder.add(new OptionParam("voice"));
@@ -105,6 +105,7 @@ public static Command clientList() {
105105
builder.add(new OptionParam("country"));
106106
builder.add(new OptionParam("ip"));
107107
builder.add(new OptionParam("badges"));
108+
builder.add(new OptionParam("location"));
108109
return builder.build();
109110
}
110111

0 commit comments

Comments
 (0)