Template:Playercount
<script> window['jsonp_1'] = function(data) { var count = typeof data === 'number' ? data : (data.players || data.online || data.count || 0); document.getElementById('count-1').textContent = count; document.getElementById('status-1').textContent = count > 0 ? 'Online' : 'Empty'; document.getElementById('pc-1').style.background = count > 0 ? 'linear-gradient(135deg,#10b981,#059669)' : 'linear-gradient(135deg,#667eea,#764ba2)'; }; var script = document.createElement('script'); script.src = 'https://betamc.org:8080/api/players?callback=jsonp_1'; script.onerror = function() { document.getElementById('count-1').textContent = '✗'; document.getElementById('status-1').textContent = 'Offline'; document.getElementById('pc-1').style.background = 'linear-gradient(135deg,#ef4444,#dc2626)'; }; document.head.appendChild(script); </script>