Skip to content

Remove master-client restriction from kick gun - #2

Open
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-gorilla-tag-mod-menu-ksqra2
Open

Remove master-client restriction from kick gun#2
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-gorilla-tag-mod-menu-ksqra2

Conversation

@ReedonMenu

Copy link
Copy Markdown
Owner

Motivation

  • The kick-gun feature should be usable by any client when enabled, not gated to the master client only.
  • Make a minimal, focused fix to the plugin behavior to match the requested change while leaving other features intact.

Description

  • Removed the PhotonNetwork.IsMasterClient guard in TryKickPlayer so the kick-gun now attempts PhotonNetwork.CloseConnection(target) for any non-local player.
  • Kept the self-kick protection so the local player cannot kick themself.
  • Bumped the plugin version constant from 1.1.0 to 1.1.1 in GorillaTagModMenu/Plugin.cs to reflect the behavioral change.
  • No other source files were modified by this change.

Testing

  • Inspected GorillaTagModMenu/Plugin.cs contents with line-oriented file reads (sed / nl) to confirm the TryKickPlayer method no longer checks PhotonNetwork.IsMasterClient, which succeeded.
  • Verified the file diff shows only the intended removal and version bump, which succeeded.
  • Checked for a local .NET SDK with which dotnet and found none, so a build/compile step could not be executed in this environment.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant