Cuberite Forum

Full Version: Count the number of players connect to website extern
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I search a solution for count the numbers of players connect to my server Minecraft.
How can i recovered information the numbers of players ?

Sorry, i am novice.
Thanks.
Hello, welcome to the forum.

You can use cRoot:Get():GetServer():GetNumPlayers() to find the amount of players online.
(02-15-2015, 07:47 AM)NiLSPACE Wrote: [ -> ]Hello, welcome to the forum.

You can use cRoot:Get():GetServer():GetNumPlayers() to find the amount of players online.

Thanks, for Lua is good.
I search solution for PHP for display numbers of players connects.

Possibility communication website <=> server minecraft ?
(02-15-2015, 07:50 AM)Creaprog Wrote: [ -> ]Possibility communication website <=> server minecraft ?

You're lucky Smile MCServer just has a network API. I don't think we even have it for a week. You can find documentation here: http://mc-server.xoft.cz/LuaAPI/cNetwork.html
(02-15-2015, 07:56 AM)NiLSPACE Wrote: [ -> ]
(02-15-2015, 07:50 AM)Creaprog Wrote: [ -> ]Possibility communication website <=> server minecraft ?

You're lucky Smile MCServer just has a network API. I don't think we even have it for a week. You can find documentation here: http://mc-server.xoft.cz/LuaAPI/cNetwork.html

Thanks !