From 069202afb62f3167f81276e5cd71eb21aa09a564 Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 22 Jun 2020 21:13:18 +0200 Subject: [PATCH] Kick with clear message, if Server is not ready --- Sources/epoch_server/init/server_init.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/epoch_server/init/server_init.sqf b/Sources/epoch_server/init/server_init.sqf index a2dad2f6..9710153e 100644 --- a/Sources/epoch_server/init/server_init.sqf +++ b/Sources/epoch_server/init/server_init.sqf @@ -120,9 +120,9 @@ diag_log "Epoch: Init Connect/Disconnect handlers"; onPlayerConnected {}; // seems this is needed or addMissionEventHandler "PlayerConnected" does not work. as of A3 1.60 addMissionEventHandler ["PlayerConnected", { params ["_id","_uid","_name","_jip","_owner"]; - // TODO: diabled STEAMAPI - Vac ban check needs reworked. - // "epochserver" callExtension format["001|%1", _uid]; - // diag_log format["playerConnected:%1", _this]; + if !(missionNamespace getVariable ["EPOCH_SERVER_READY", false]) exitwith { + ['kick',_uid,'Server not fully loaded - retry in a few seconds!'] call EPOCH_serverCommand + }; ["PlayerData", _uid, EPOCH_expiresPlayer, [_name]] call EPOCH_fnc_server_hiveSETEX; ['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog; }];