[Request] Replacement for "stream().forEach"

Status
This thread has been locked.

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
I know that this method works only Spigot 1.8+
Code:
Bukkit.getOnlinePlayers().stream().forEach(player -> player.sendMessage("Hi world!"));
So i've searched on spigot but i wasn't able to find a replacement for that on 1.7.10, any ideas?

upload_2018-3-12_20-31-39.png
 
Type
Requesting

Attachments

  • upload_2018-3-12_20-31-31.png
    upload_2018-3-12_20-31-31.png
    7.3 KB · Views: 18
  • upload_2018-3-12_20-31-39.png
    upload_2018-3-12_20-31-39.png
    7.3 KB · Views: 98
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Sniper

Software Developer
Supreme
Feedback score
65
Posts
1,312
Reactions
695
Resources
0
You could also just
for(Player player : Bukkit.getOnlinePlayers()) player.sendMessage(x);
 

lfw

Australian Developer / @lfw_0
Supreme
Feedback score
3
Posts
43
Reactions
34
Resources
0

M4T14SG4M3R

PapuHost Game Hosting CEO
Premium
Feedback score
0
Posts
278
Reactions
77
Resources
0
I already got it with the for function. Thanks anyways.
 
Status
This thread has been locked.
Top