sourcemod/plugins/admin-flatfile/admin-flatfile.sp
David Anderson 8860ff6224 changed how the admin cache is rebuilt
renamed the plugin and fixed compilation errors

--HG--
rename : plugins/admin-flatfile/admin-base.sp => plugins/admin-flatfile/admin-flatfile.sp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40444
2007-02-06 05:13:24 +00:00

33 lines
723 B
SourcePawn

#include <sourcemod>
#include <textparse>
public Plugin:myinfo =
{
name = "Admin Base",
author = "AlliedModders LLC",
description = "Reads admin files",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
};
/** Various globals */
new AdminFlag:g_FlagLetters[26]; /* Maps the flag letters */
new bool:g_LoggedFileName = false; /* Whether or not the file name has been logged */
new g_ErrorCount = 0;
#include "admin-levels.sp"
#include "admin-overrides.sp"
#include "admin-groups.sp"
public OnRebuildAdminCache(AdminCachePart:part)
{
RefreshLevels();
if (part == AdminCache_Overrides)
{
ReadOverrides();
} else if (part == AdminCache_Groups)
{
ReadGroups();
}
}