String server = player != null ? player.getServer().getInfo().getName() : "CONSOLE";
if (player != null) {
if (!sender.hasPermission(Permissions.Admin.SPY_EXEMPT)) {
TextComponent spyMessage = Dictionary.format(Dictionary.SPY_MESSAGE, "SERVER", server, "SENDER", sender.getName(), "RECIPIENT", recipient.getName(), "MESSAGE", message);
for (ProxiedPlayer onlinePlayer : ProxyServer.getInstance().getPlayers()) {
<BUG>if (player.getUniqueId() != onlinePlayer.getUniqueId() && recipient.getUniqueId() != onlinePlayer.getUniqueId()) {
</BUG>
if (onlinePlayer.hasPermission(Permissions.Admin.SPY) && PlayerData.getData(onlinePlayer.getUniqueId()).isSpy()) {
onlinePlayer.sendMessage(spyMessage);
}

String server = player != null ? player.getServer().getInfo().getName() : "CONSOLE";
if (player != null) {
if (!sender.hasPermission(Permissions.Admin.SPY_EXEMPT)) {
TextComponent spyMessage = Dictionary.format(Dictionary.SPY_MESSAGE, "SERVER", server, "SENDER", sender.getName(), "RECIPIENT", recipient.getName(), "MESSAGE", message);
for (ProxiedPlayer onlinePlayer : ProxyServer.getInstance().getPlayers()) {
if (player.getUniqueId() != onlinePlayer.getUniqueId() && ((ProxiedPlayer) recipient).getUniqueId() != onlinePlayer.getUniqueId()) {
if (onlinePlayer.hasPermission(Permissions.Admin.SPY) && PlayerData.getData(onlinePlayer.getUniqueId()).isSpy()) {
onlinePlayer.sendMessage(spyMessage);
