mc-player-counter | Displays the number of online players wi
2017-05-13Displays the number of online players with 2 lines of HTML
You just need to add the script link (you can add in head or body)
<script src="https://cdn.jsdelivr.net/gh/leonardosnt/[email protected]/dist/mc-player-counter.min.js"></script>
Then create an element with data-playercounter-ip="IP" ( See attributes)
E.g
<span data-playercounter-ip="my.server.ip">0</span>
Full Example:
<!DOCTYPE html>
<html>
<head>
<!-- ... -->
<script src="https://cdn.jsdelivr.net/gh/leonardosnt/[email protected]/dist/mc-player-counter.min.js"></script>
</head>
<body>
There are <span data-playercounter-ip="my.server.ip">0</span> players online on my server.
</body>
</html>
Alternative CDN: https://cdn.rawgit.com/leonardosnt/mc-player-counter/1.1.0/dist/mc-player-counter.min.js (Is is not that reliable)
JsFiddle example: https://jsfiddle.net/ctu4kbzq/
Live example: https://cdn.rawgit.com/leonardosnt/mc-player-counter/master/examples/index.html
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta