1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

game interface improvements

This commit is contained in:
RaidMax
2022-02-13 21:38:40 -06:00
parent 6eaae7ea22
commit 96b53ada1b
5 changed files with 91 additions and 40 deletions

View File

@ -37,7 +37,7 @@ let plugin = {
break;
case 'preconnect':
// when the plugin is reloaded after the servers are started
if (servers[server.EndPoint] == null) {
if (servers[server.EndPoint] === undefined || servers[server.EndPoint] == null) {
const enabled = initialize(server);
if (!enabled) {
@ -222,7 +222,7 @@ const sendEvent = (server, responseExpected, event, subtype, client, data) => {
let pendingCheckCount = 0;
const start = new Date();
while (pendingOut && pendingCheckCount <= 30) {
while (pendingOut && pendingCheckCount <= 10) {
try {
const out = server.GetServerDvar(outDvar);
pendingOut = !(out == null || out === '' || out === 'null');