Class CoreConfig
- Namespace
- CounterStrikeSharp.API.Core
- Assembly
- CounterStrikeSharp.API.dll
Configuration related to the Core API.
public class CoreConfig : IStartupService
- Inheritance
-
objectCoreConfig
- Implements
Constructors
CoreConfig(IScriptHostConfiguration, ICommandManager, ILogger<CoreConfig>)
public CoreConfig(IScriptHostConfiguration scriptHostConfiguration, ICommandManager commandManager, ILogger<CoreConfig> logger)
Parameters
scriptHostConfiguration
IScriptHostConfigurationcommandManager
ICommandManagerlogger
ILogger<CoreConfig>
Properties
FollowCS2ServerGuidelines
Per http://blog.counter-strike.net/index.php/server_guidelines/, certain plugin functionality will trigger all of the game server owner's Game Server Login Tokens (GSLTs) to get banned when executed on a Counter-Strike 2 game server.
Enabling this option will block plugins from using functionality that is known to cause this.
Note that this does NOT guarantee that you cannot
receive a ban.
Disable this option at your own risk.
public static bool FollowCS2ServerGuidelines { get; }
Property Value
PluginAutoLoadEnabled
When enabled, plugins are automatically loaded from the plugins directory on server start.
public static bool PluginAutoLoadEnabled { get; }
Property Value
PluginHotReloadEnabled
When enabled, plugins are automatically reloaded when their .dll file is updated.
public static bool PluginHotReloadEnabled { get; }
Property Value
PublicChatTrigger
List of characters to use for public chat triggers.
public static IEnumerable<string> PublicChatTrigger { get; }
Property Value
ServerLanguage
public static string ServerLanguage { get; }
Property Value
SilentChatTrigger
List of characters to use for silent chat triggers.
public static IEnumerable<string> SilentChatTrigger { get; }
Property Value
UnlockConCommands
public static bool UnlockConCommands { get; }
Property Value
UnlockConVars
public static bool UnlockConVars { get; }
Property Value
Methods
Load()
public void Load()