manually add one to player count when balancing players
This commit is contained in:
+8
-1
@@ -28,9 +28,11 @@ public class BungeeServerPing implements AdaptedServerPing {
|
||||
return desc.toPlainText();
|
||||
}
|
||||
|
||||
int add = 0;
|
||||
|
||||
@Override
|
||||
public int getPlayerCount() {
|
||||
return handle.getPlayers().getOnline();
|
||||
return handle.getPlayers().getOnline()+add;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -38,6 +40,11 @@ public class BungeeServerPing implements AdaptedServerPing {
|
||||
return handle.getPlayers().getMax();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addPlayer() {
|
||||
add++;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServerPing getHandle() {
|
||||
return handle;
|
||||
|
||||
Reference in New Issue
Block a user