Basically I am coding my PM system and I've found a hurdle where when a player enables PM Spy it puts them in the hasmap but doesn't send them the message that is sent to a player
I cannot figure out why thou?
Code (text):
for(Player pn : spy.values()) {
pn.sendMessage(ChatColor.GOLD + "PMSpy > " + ChatColor.GRAY + player.getDisplayName() + " -> " + reciever.getDisplayName() + " >" + ChatColor.YELLOW + mensagem);
}
pn.sendMessage(ChatColor.GOLD + "PMSpy > " + ChatColor.GRAY + player.getDisplayName() + " -> " + reciever.getDisplayName() + " >" + ChatColor.YELLOW + mensagem);
}