mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-30 14:43:52 +01:00
Fixed dumb mistake
This commit is contained in:
parent
abd71f66c6
commit
c85dcfd8bc
@ -195,7 +195,7 @@ public class LobbyBalancer extends Plugin {
|
|||||||
public static int getPlayerCount(ServerInfo server) {
|
public static int getPlayerCount(ServerInfo server) {
|
||||||
if (ConfigEntries.REDIS_BUNGEE_ENABLED.get()) {
|
if (ConfigEntries.REDIS_BUNGEE_ENABLED.get()) {
|
||||||
try {
|
try {
|
||||||
RedisBungee.getApi().getPlayersOnServer(server.getName()).size();
|
return RedisBungee.getApi().getPlayersOnServer(server.getName()).size();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user