Skip to content

Commit

Permalink
Fix QOL detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dysphie committed Aug 13, 2021
1 parent 8e5f5c4 commit 906d057
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions scripting/nmrih-bettertools.sp
Expand Up @@ -44,7 +44,7 @@ public Plugin myinfo =
name = "Better Tools",
author = "Dysphie",
description = "Extended functionality for tools",
version = "0.1.3",
version = "0.1.4",
url = ""
};

Expand Down Expand Up @@ -107,19 +107,7 @@ public void OnPluginStart()

public void OnAllPluginsLoaded()
{
qolPluginExists = LibraryExists("qol");
}

public void OnLibraryAdded(const char[] name)
{
if (StrEqual(name, "qol"))
qolPluginExists = true;
}

public void OnLibraryRemoved(const char[] name)
{
if (StrEqual(name, "qol"))
qolPluginExists = false;
qolPluginExists = FindConVar("qol") != -1;
}

public void OnConfigsExecuted()
Expand Down

0 comments on commit 906d057

Please sign in to comment.