Quantcast
Channel: SpigotMC - High Performance Minecraft
Viewing all articles
Browse latest Browse all 128654

for(Player pn : spy.values()) HashMap Confusion

$
0
0
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

Code (text):
                for(Player pn : spy.values()) {
                    pn.sendMessage(ChatColor.GOLD + "PMSpy > " + ChatColor.GRAY + player.getDisplayName() + " -> " + reciever.getDisplayName() + " >" + ChatColor.YELLOW +  mensagem);

                }
I cannot figure out why thou?

Viewing all articles
Browse latest Browse all 128654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>