Skip to content

Commit c845aba

Browse files
authored
Merge pull request #7 from Fortress-Faceoffs/Configurable
Configurable
2 parents 7b9a050 + 431b623 commit c845aba

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
## Release Notes
22

3-
## [2.0.0]
3+
## [2.0.3]
44

5-
### Added
6-
Config system for weapon and class whitelist
75
### Fixed
8-
9-
### Removed
10-
Old hardcoded system
6+
Plugin trying to load before auto config is loaded.

plugins/ffweplist.smx

59 Bytes
Binary file not shown.

scripting/ffweplist.sp

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public Plugin myinfo =
1616
name = "Fortress-Faceoffs-Weapon-Whitelist",
1717
author = "minesettimi",
1818
description = "Enforces weapon whitelist by removing banned weapons and giving allowed weapons",
19-
version = "2.0.1",
19+
version = "2.0.3",
2020
url = "https://github.com/Fortress-Faceoffs/Fortress-Faceoffs-Weapon-Whitelist"
2121
};
2222

@@ -67,7 +67,7 @@ public void OnPluginStart()
6767

6868
AutoExecConfig(true, "ffweplist");
6969

70-
LoadConfig();
70+
CreateTimer(1.0, LoadTimer, 0, TIMER_FLAG_NO_MAPCHANGE);
7171
}
7272

7373
public Action ConCmd_Reload(int client, int args)
@@ -77,6 +77,12 @@ public Action ConCmd_Reload(int client, int args)
7777
return Plugin_Handled;
7878
}
7979

80+
Action LoadTimer(Handle timer)
81+
{
82+
LoadConfig();
83+
return Plugin_Handled;
84+
}
85+
8086
void LoadConfig()
8187
{
8288
if (!enabled.BoolValue) return;

0 commit comments

Comments
 (0)