Giter Site home page Giter Site logo

Comments (10)

SleepSpace9 avatar SleepSpace9 commented on August 27, 2024 1

@XFuryMCPE Sounds more like a workaround, I would prefer a clean solution.
But thanks for tip! 👍

from nemisys.

PeratX avatar PeratX commented on August 27, 2024 1

The client info is the response to the HeartbeatPacket, so you can change the heartbeat time in client.

from nemisys.

Guillaume351 avatar Guillaume351 commented on August 27, 2024 1

@PeratX But the heartbeat refresh data on the Nemisys server, it doesn't send the info of game1 and 2 to hub ? (In my example)

from nemisys.

SleepSpace9 avatar SleepSpace9 commented on August 27, 2024

It would also be great if the names of all online players were put into the synapse client data array
(of course only if it doesn't decrease performance).

from nemisys.

Guillaume351 avatar Guillaume351 commented on August 27, 2024

Maybe an API to get manually informations from a certain client ... As this, it doesn't refresh for people that don't use this data.

from nemisys.

XFuryMCPE avatar XFuryMCPE commented on August 27, 2024

How about you connect a useless test client to the server, which reboots everytime you want to refresh the counts?

from nemisys.

XFuryMCPE avatar XFuryMCPE commented on August 27, 2024

Just tested that ^^ works

from nemisys.

SleepSpace9 avatar SleepSpace9 commented on August 27, 2024

The line this.server.updateClientData(); is missing in the heartbeat section in Client.java.
It's only done at "case SynapseInfo.CONNECT_PACKET: ..." and that's the reason why the client data only refreshs at connect. After I put it also at "case SynapseInfo.HEARTBEAT_PACKET: ..." it works!

from nemisys.

Guillaume351 avatar Guillaume351 commented on August 27, 2024

@PeratX Please reopen :/ @SleepSpace9 fix is working for me, could you apply it ? I don't really know how to create a clean pull request :/

from nemisys.

SleepSpace9 avatar SleepSpace9 commented on August 27, 2024

@Guillaume351 If you use my fork (update to 0.15.9 still missing there) you even get a comma separated list of all Synapse players in ClientData.

You can fetch it like this:

foreach($this->getServer()->getSynapse()->getClientData() as $cdata){
    echo "Players on server ".$cdata["description"].":\n".$cdata["playerNames"]."\n";
}

I use it for my own /list command. Possibly some more people like it. 😉

from nemisys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.