package net.md_5.gauge.monitor;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class PlayersMonitor implements Runnable
{

    @Override
    public void run()
    {
        Player[] players = Bukkit.getServer().getOnlinePlayers();
    }
}

@@ -26,16 +26,64 @@
 nitor;%0A%0A
+import java.util.HashSet;%0Aimport java.util.Set;%0A
 import o
@@ -185,16 +185,71 @@
 able%0A%7B%0A%0A
+    private final Set%3CString%3E seen = new HashSet%3C%3E();%0A%0A
     @Ove
@@ -348,16 +348,477 @@
 yers();%0A
+        Set%3CString%3E joined = new HashSet%3C%3E();%0A        Set%3CString%3E left = new HashSet%3C%3E( seen );%0A%0A        for ( Player player : players )%0A        %7B%0A            String name = player.getName();%0A            if ( !seen.contains( name ) )%0A            %7B%0A                joined.add( name );%0A            %7D%0A            left.remove( name );%0A        %7D%0A%0A        int joinedCount = joined.size();%0A        int leftCount = left.size();%0A        int onlineCount = players.length;%0A
     %7D%0A%7D%0A

Add player join / parts + online count.