Displays a png of active users on a starbound server
- PHP5.4+
- Composer
Clone github directory
git clone https://github.com/dkesberg/StarboundUserCount.git
change into project directory and run composer
cd StarboundUserCount
composer install
Create a cronjob to check network connections and update usercount.txt. Change filepath to match your system.
*/5 * * * * lsof -i TCP:21025|grep ESTABLISHED|wc -l > /var/www/starbound/app/storage/data/usercount.txt