Skip to content

a2Labs-cc/SW2-AFKManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[SwiftlyS2] AFKManager


Made by aga

Overview

SW2-AFKManager is a SwiftlyS2 plugin that helps keep your server active by warning and punishing:

  • AFK players
  • Players camping within a radius
  • Players staying in spectator too long

It also supports optional C4 transfer from AFK players, localized messages including chat prefix, and optional center HTML warnings.

Support

Need help or have questions? Join our Discord server:

Discord

Download Shortcuts

  • 📦  Download Latest Plugin VersionClick Here
  • ⚙️  Download Latest SwiftlyS2 VersionClick Here

Installation

  1. Download/build the plugin (publish output lands in build/publish/AFKManager/).
  2. Copy the published plugin folder to your server:
.../game/csgo/addons/swiftlys2/plugins/AFKManager/
  1. Ensure the resources/ folder (translations, gamedata) is alongside the DLL.
  2. Start/restart the server.

Configuration

The plugin uses SwiftlyS2's JSON config system.

  • File name: config.jsonc
  • Section: swiftlys2/configs/plugins/AFKManager/

On first run the config is created automatically. The resolved path is logged on startup.

Key Configuration Options

  • Timer: How often the plugin checks players (seconds)

  • SkipWarmup: Skip checks during warmup

  • WarningSound: Sound emitted on warnings

  • CenterHtmlAlerts: Show center HTML warning messages (auto clears when player becomes active)

  • AfkWarnInterval / AfkPunishAfterWarnings / AfkPunishment: AFK detection + punishment

  • AfkTransferC4AfterWarnings / AfkTransferC4OnlyFromBuyZone: Optional C4 transfer behavior

  • AfkSkipFlag: Permissions to skip AFK checks

  • SpecWarnInterval / SpecKickAfterWarnings / SpecKickMinPlayers / SpecKickOnlyMovedByPlugin: Spectator handling

  • SpecSkipFlag: Permissions to skip spectator checks

  • AntiCampEnabled: Completely disable anti-camp functionality

  • AntiCampRadius / AntiCampWarnInterval / AntiCampPunishAfterWarnings: Camping detection

  • AntiCampPunishment / AntiCampSlapDamage: Punishment configuration

  • AntiCampSkipBombPlanted / AntiCampSkipTeam / AntiCampSkipFlag: Skip rules

Commands

  • None.

Building

dotnet build

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages