Skip to content

Commit

Permalink
removed unnecessary sv_shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
l-Aad-l committed Jan 13, 2021
1 parent 39c6d3e commit 98696cf
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 98696cf

Please sign in to comment.