2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00
This commit is contained in:
Tux 2016-06-25 08:39:55 -04:00
parent 821a41c1a9
commit c753bfa983

View File

@ -169,7 +169,7 @@ public class RedisBungeeListener implements Listener {
original = plugin.getPlayers(); original = plugin.getPlayers();
} else { } else {
try { try {
original = plugin.getPlayersOnServer(type); original = RedisBungee.getApi().getPlayersOnServer(type);
} catch (IllegalArgumentException ignored) { } catch (IllegalArgumentException ignored) {
} }
} }
@ -187,7 +187,7 @@ public class RedisBungeeListener implements Listener {
} else { } else {
out.writeUTF(type); out.writeUTF(type);
try { try {
out.writeInt(plugin.getPlayersOnServer(type).size()); out.writeInt(RedisBungee.getApi().getPlayersOnServer(type).size());
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
out.writeInt(0); out.writeInt(0);
} }