Check out example codes for "java action every player bukkit". It will help you in understanding the concepts better.

Code Example 1

for(Player all : Bukkit.getServer().getOnlinePlayers())
{
    all.something(something)
}

Code Example 2

for(Player all : Bukkit.getServer().getOnlinePlayers())
{
    all.something(something)
}

Code Example 3

for(Player all : Bukkit.getServer().getOnlinePlayers())
{
    all.something(something)
}

Code Example 4

for(Player all : Bukkit.getServer().getOnlinePlayers())
{
    all.something(something)
}

Learn ReactJs, React Native from akashmittal.com