mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
Exclude bots from player counts
This commit is contained in:
@@ -60,6 +60,7 @@ public class PlayerHandler {
|
|||||||
for (int i = 0; i < Constants.MAX_PLAYERS; i++) {
|
for (int i = 0; i < Constants.MAX_PLAYERS; i++) {
|
||||||
if (players[i] != null) {
|
if (players[i] != null) {
|
||||||
playersCurrentlyOn[i] = players[i].playerName;
|
playersCurrentlyOn[i] = players[i].playerName;
|
||||||
|
if (!players[i].isBot)
|
||||||
playerCount++;
|
playerCount++;
|
||||||
} else {
|
} else {
|
||||||
playersCurrentlyOn[i] = "";
|
playersCurrentlyOn[i] = "";
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user