Cuberite Forum
Count the number of players connect to website extern - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Count the number of players connect to website extern (/thread-1777.html)



Count the number of players connect to website extern - Creaprog - 02-15-2015

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.


RE: Count the number of players connect to website extern - NiLSPACE - 02-15-2015

Hello, welcome to the forum.

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


RE: Count the number of players connect to website extern - Creaprog - 02-15-2015

(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 ?


RE: Count the number of players connect to website extern - NiLSPACE - 02-15-2015

(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


RE: Count the number of players connect to website extern - Creaprog - 02-15-2015

(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 !