Raised This Month: $32 Target: $400
 8% 

KvConfigs


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
3845
Plugin Version:
1.0.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    A map configuration plugin and convar enforcement system.
    Old 08-20-2013 , 16:58   KvConfigs
    Reply With Quote #1

    Description:
    • Provides two optional systems that can be used separately or together - another map configuration plugin and a ConVar enforcement system.
    • Should work for just about every mod.
    Map Configuration:
    • Map entries are defined within a single file: /sourcemod/configs/kvconfigs.maps.ini
    • No partial/prefix support at this time. Map names must be precise.
    • Unlimited cvar/cmd entries per map, however, only one convar/cmd should be used per each entry.
    • The configuration file is only parsed on first load; use the command kv_reloadmaps to update after making changes or within server.cfg for per-map updating.
    ConVar Enforcement:
    • CVar entries are defined within a single file: /sourcemod/configs/kvconfigs.cvars.ini
    • Any Cvar defined within the file will be unable to have it's value changed through any external source. This includes silly admins with sm_cvar, CS:GO game modes, plugin configuration files, etc.
    • Capable of enforcing strings/floats/integers (and bools if you don't mind 0/1 vs false/true).
    • The configuration file is only parsed on first load; use the command kv_reloadcvars to update after making changes or within server.cfg for per-map updating.
    • The kv_setprotected <convar> <value> command allows modification of any cvar currently being enforced, but will not modify the original configuration file and changes will be lost on kv_reloadcvars.
    • The kv_remprotected <convar> command will stop any cvar from being enforced.
    Important (Edit):
    • Only after posting this plugin did I consider how it could be used for nefarious purposes...
    • I'll provide a version with a cvar blacklist sometime this week when time permits to write such, so admins won't be forcing sv_password / rcon_password.
    • Until then, if you want to use it, you may want to change ADMFLAG_RCON to ADMFLAG_ROOT within the code and ensure bad admins don't have 'z' access. That should prevent anyone from doing something derpy like kv_setprotected rcon_password myrconnowbitch.
    Attached Files
    File Type: ini kvconfigs.cvars.ini (354 Bytes, 409 views)
    File Type: ini kvconfigs.maps.ini (461 Bytes, 421 views)
    File Type: sp Get Plugin or Get Source (sm_kvconfigs.sp - 829 views - 14.2 KB)
    __________________

    Last edited by thetwistedpanda; 08-20-2013 at 17:35. Reason: Derp! Mis-information
    thetwistedpanda is offline
    XenTerSiO
    SourceMod Donor
    Join Date: Nov 2011
    Location: Black Mesa
    Old 08-20-2013 , 17:48   Re: KvConfigs
    Reply With Quote #2

    Thank you very much for your plugins. They are unique!
    XenTerSiO is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 08-20-2013 , 18:01   Re: KvConfigs
    Reply With Quote #3

    Nice - I can already see a use for this on a server or two of mine with the CVar control

    Thank you
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    tumtum
    Senior Member
    Join Date: Aug 2012
    Old 01-20-2014 , 12:08   Re: KvConfigs
    Reply With Quote #4

    I use your plugin always, works perfect!

    One question:
    Is there a way to apply changes to the mapconfig without restart the server?
    If i want to add new maps i need to shutdown my server and drop all the players.

    Tum
    tumtum is offline
    Ghostyy
    Junior Member
    Join Date: Feb 2014
    Location: United Kingdom
    Old 03-03-2014 , 12:59   Re: KvConfigs
    Reply With Quote #5

    Just wondering, is there any way to use this to limit teams per map?
    So I can set it so CT is the only playable team on certain maps?
    Ghostyy is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:39.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode