-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSGO : sourceServer.getPlayers().size() always return 1 #247
Comments
PS : JAVA Version of condenser |
1.3.7 |
Didn't even try to get more player on the server to test. This method maybe doesn't work at all... |
Any server-side plugins? What's the player count in Steam's server browser or other tools? |
As of a CS:GO update a few months ago, the players list output changed,
With the new default, it always returns a single "player" with the name Set host_players_show to 2 to get the old behavior. Nicholas Hastings
|
@psychonic Do you know what the @danielsawan Do you have one or more IPs of servers that show this behavior? |
Yes here is an IP : 62.210.177.75:29011 The CS:go browser show 0 players connected but the condenser say 1. |
Ok, finally found the time to have a look at this. Because Valve decided to abuse the protocol's The correct way would be to have a look at the BTW, the right way to get the first player is not |
Oh so can we say for example that real player always equals to getPlayers() minus 1 ? |
The |
Sorry but are you telling me that right now there is now way to get the number of connected player to a csgo server calling server.getPlayers() ? I can't imagine that it is just not possible anymore to get such a usefull information. |
Oh sorry i just understand the host_players_show 2 tricks. My bad. Thanks again ;) |
Evrything is in the title. When there is 0 player connected, GOTV off, sourceServer.getPlayers().size() always return 1.
Then, when i try sourceServer.getPlayers().get(0).getPlayerName() i got a nullpointer exception.
Any idea ?
The text was updated successfully, but these errors were encountered: