Add current/max player count on player list

This commit is contained in:
Mike Primm 2012-07-30 21:42:59 -05:00
parent b5700bd462
commit 2401eff676

View File

@ -370,7 +370,14 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
}
return c;
}
@Override
public int getMaxPlayers() {
return getServer().getMaxPlayers();
}
@Override
public int getCurrentPlayers() {
return getServer().getOnlinePlayers().length;
}
}
/**
* Player access abstraction class