mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-12 22:55:06 +00:00
53442b598e
Otherwise clients might connect to the server before everything is ready for them.
E.g. when restarting the server, the clients will immediately try to reconnect.
Clients might connect before the `PacketHandler` is initialized, which results in some packets not being processed by the server correctly.
Same goes for the commands: Discord might send in commands before all commands were added to the `CommandHandler`.
Without the `ClientJoined` action, clients might even be allowed to connect if they are on the banlist.
(Though without this initialization they or regular clients might be broken in some ways?)
(cherry picked from commit
|
||
---|---|---|
.. | ||
Client.cs | ||
CommandHandler.cs | ||
DiscordBot.cs | ||
FlipOptions.cs | ||
Program.cs | ||
Server.cs | ||
Server.csproj | ||
Settings.cs | ||
Time.cs |