#why server host disconnect from server
1 messages · Page 1 of 1 (latest)
Ur sending through Player.List not ReadyList
i have tried using Player.Ready but it will still be like this
Y'know there is a Server.SendBroadcast?
^
this also cause host disconnect🤔
Shouldn't
OnPlayerJoined direct execute GlobalBroadcast()🤔
It seems like a NRE error cuz u send broadcast to a null player
but i can do nothing without ur code
this is my code
all other code call this
maybe the plugin send broadcast to a player who is disconnect or auth🤔
i cant think of any other reasonðŸ˜
i cant understand
all player disconnect after the log in pic
ig it is skill issue so
are you using Player.List?
Server.SendBroadcast(message, duration, Broadcast.BroadcastFlags.Normal, true);
im using this
Do you have patches or a plugin that possible doing something like that?
because you are sending data to the Dedicated Server
Do you have a plugin that patches some behavior for that?
no
when you call the function check if its a Server.Host then return from it
if (ev.Player == Server.Host)
return;
or use IsHost
XDDDD
xD
there is
referenceHub.Mode
which has mode of host
what cause the fucking error and make the host and all players disconnect
😡
why globalbroadcast make the host disconnect
You have the host in players
Most likely
Ye
^
Hello, if Server.SendBroadcast(..) crashes your server, then please report it on our github
it does not crash my game/server so
is there is some broken patchs on your side ?
nope
no patch on my server
what the ...
This is actually illegal
the fuck
thread don't normally crash the server, it's just silence crash the thread
if you use async void, it can crash the entire process
please stop using Newtonsoft.Json 
System.Text.Json is included with the game
oh okay i didn't knew
Task.Run()xD
Run(async
then
So do not use task