Comments (10)
@XFuryMCPE Sounds more like a workaround, I would prefer a clean solution.
But thanks for tip! 👍
from nemisys.
The client info is the response to the HeartbeatPacket, so you can change the heartbeat time in client.
from nemisys.
@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.
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.
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.
How about you connect a useless test client to the server, which reboots everytime you want to refresh the counts?
from nemisys.
Just tested that ^^ works
from nemisys.
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.
@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.
@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)
- After i transfer using this code to my silentlobby server, i got the problem that i cant move and my spawnlocation isnt set or something else
- Tablist doesnt remove an player HOT 2
- jar file HOT 2
- how to get all Synapse-Clients? HOT 1
- New MCPE Protocol Version
- 'Magic is not match' HOT 1
- Windows installer HOT 1
- Still hard working on 1.1.0 update for Nemisys and SynapseAPI HOT 1
- Error HOT 1
- Timeout on 1.1.0/1.1.1 HOT 5
- Nemisys keeps timeouting HOT 9
- some questions HOT 1
- View distance issue
- Playercount isn't updated HOT 2
- fail
- Problems after transferring to server
- Update to 1.2 HOT 1
- Nemisys freezes randomly
- Contrl + C Kill process, not shutdown
- Unable to access the server HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nemisys.