Skip to content

fix: skip VIP checks for clients not in game on disconnect - #30

Draft
Rushaway wants to merge 1 commit into
masterfrom
claude/sweet-bell-b6vqpv
Draft

Rushaway wants to merge 1 commit into
masterfrom
claude/sweet-bell-b6vqpv

Conversation

@Rushaway

@Rushaway Rushaway commented Oct 5, 2026

Copy link
Copy Markdown
Member

Fixes #29

Summary

  • OnClientDisconnect now returns early when !IsClientInGame(client). VIP Core natives throw Client X is not connected for clients that disconnect before entering the game.
  • Bumps the plugin version to 2.1.1.

Note

This change does not touch a separate issue in the same condition. VIP_GetClientVIPGroup(client, testVipGroup, ...) writes the client's group into testVipGroup and returns true on success. It does not compare the group with the test group, so the removal of test VIP on disconnect (and in the equivalent loop around line 172) likely never runs. It's left as is here because fixing it would change behavior.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V2Q4N9D2yxJ52SzU4SsRns


Generated by Claude Code

OnClientDisconnect also fires for clients that drop before entering the
game. VIP Core natives throw "Client X is not connected" for those, so
bail out early unless the client is in game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V2Q4N9D2yxJ52SzU4SsRns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OnClientDisconnect: VIP_IsClientVIP throws "Client X is not connected"

2 participants