Skip to content

Commit

Permalink
Merge pull request #34 from RGLgg/beta
Browse files Browse the repository at this point in the history
removed unnecessary sv_shutdown
  • Loading branch information
l-Aad-l committed Jan 13, 2021
2 parents 11d0ff2 + 2218ca5 commit dec2051
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions addons/sourcemod/scripting/rglqol.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <regex>

#define PLUGIN_NAME "RGL.gg QoL Tweaks"
#define PLUGIN_VERSION "1.4.1"
#define PLUGIN_VERSION "1.4.2"

bool:CfgExecuted;
bool:alreadyChanging;
Expand Down Expand Up @@ -129,15 +129,6 @@ public Action checkStuff(Handle timer)
LogMessage("[RGLQoL] STV is currently live! Not restarting.");
return;
}
// restarts the server if it is empty
else
{
LogMessage("[RGLQoL] Server empty. Issuing sv_shutdown.");
// set the server to never shut down here unless it's FULLY empty with this convar...
SetConVarInt(FindConVar("sv_shutdown_timeout_minutes"), 0, false);
// ...and actually send an sv_shutdown. if MY player-on-server logic somehow fails...tf2's HOPEFULLY shouldn't
ServerCommand("sv_shutdown");
}
}

public OnRGLChanged(ConVar convar, char[] oldValue, char[] newValue)
Expand Down

0 comments on commit dec2051

Please sign in to comment.