Table of Contents

Class CoreConfig

Namespace
CounterStrikeSharp.API.Core
Assembly
CounterStrikeSharp.API.dll

Configuration related to the Core API.

public class CoreConfig : IStartupService
Inheritance
CoreConfig
Implements

Constructors

CoreConfig(IScriptHostConfiguration, ICommandManager, ILogger<CoreConfig>)

public CoreConfig(IScriptHostConfiguration scriptHostConfiguration, ICommandManager commandManager, ILogger<CoreConfig> logger)

Parameters

scriptHostConfiguration IScriptHostConfiguration
commandManager ICommandManager
logger 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

bool

PluginAutoLoadEnabled

When enabled, plugins are automatically loaded from the plugins directory on server start.

public static bool PluginAutoLoadEnabled { get; }

Property Value

bool

PluginHotReloadEnabled

When enabled, plugins are automatically reloaded when their .dll file is updated.

public static bool PluginHotReloadEnabled { get; }

Property Value

bool

PublicChatTrigger

List of characters to use for public chat triggers.

public static IEnumerable<string> PublicChatTrigger { get; }

Property Value

IEnumerable<string>

ServerLanguage

public static string ServerLanguage { get; }

Property Value

string

SilentChatTrigger

List of characters to use for silent chat triggers.

public static IEnumerable<string> SilentChatTrigger { get; }

Property Value

IEnumerable<string>

UnlockConCommands

public static bool UnlockConCommands { get; }

Property Value

bool

UnlockConVars

public static bool UnlockConVars { get; }

Property Value

bool

Methods

Load()

public void Load()