Skip to content

Commit f4d2d1a

Browse files
authored
Remove OnPluginEnd function
Removed OnPluginEnd function to clean up unhooking and deletion logic.
1 parent eaa89a1 commit f4d2d1a

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

addons/sourcemod/scripting/ExtraCommands.sp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,6 @@ public void OnPluginStart()
128128
}
129129
}
130130

131-
public void OnPluginEnd()
132-
{
133-
for (int i = 1; i <= MaxClients; i++)
134-
{
135-
SDKUnhook(i, SDKHook_PreThink, OnPreThink);
136-
SDKUnhook(i, SDKHook_PostThinkPost, OnPostThinkPost);
137-
}
138-
139-
if (g_hServerCanExecuteCmds != null)
140-
delete g_hServerCanExecuteCmds;
141-
142-
if (g_hEntitiesListToKill != null)
143-
delete g_hEntitiesListToKill;
144-
}
145-
146131
public void OnMapStart()
147132
{
148133
g_bInBuyZoneAll = false;

0 commit comments

Comments
 (0)