forked from UNLOZE/sm-plugins
Fix OnLibrary* spam
This commit is contained in:
@@ -44,8 +44,21 @@ public void OnAllPluginsLoaded()
|
||||
(g_Plugin_UNLOZE ? "loaded" : "not loaded"));
|
||||
}
|
||||
|
||||
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
|
||||
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
|
||||
public void OnLibraryAdded(const char[] name)
|
||||
{
|
||||
if(StrEqual(name, "AFKManager"))
|
||||
g_Plugin_AFKManager = true;
|
||||
else if(StrEqual(name, "UNLOZE_ForumIntegration"))
|
||||
g_Plugin_UNLOZE = true;
|
||||
}
|
||||
|
||||
public void OnLibraryRemoved(const char[] name)
|
||||
{
|
||||
if(StrEqual(name, "AFKManager"))
|
||||
g_Plugin_AFKManager = false;
|
||||
else if(StrEqual(name, "UNLOZE_ForumIntegration"))
|
||||
g_Plugin_UNLOZE = false;
|
||||
}
|
||||
|
||||
public void OnClientPostAdminCheck(int client)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user