Skip to content

[WIP] Configure RCON for active player monitoring#52

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/configure-rcon-settings
Closed

[WIP] Configure RCON for active player monitoring#52
Copilot wants to merge 1 commit intomainfrom
copilot/configure-rcon-settings

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Plan to Fix RCON Configuration Issue

Problem

Users who enable RCON and enter credentials still see the message "RCON is not enabled or configured" even when RCON is properly configured. The root cause is that the RCON library (nizarii/arma-rcon-class) is not installed, but the error message doesn't distinguish between "RCON not configured" and "RCON library not installed".

Root Cause

In rcon_manager.php, the isEnabled() method returns false when $this->libraryAvailable is false, which happens when the Composer package nizarii/arma-rcon-class is not installed. The current error message is misleading.

Minimal Changes Required

  • Update active_players.php to show a more specific error message when RCON is configured but the library is missing
  • Update rcon_manager.php to add a method that distinguishes between "not configured" and "library missing"
  • Optionally update admin panel to show a warning if the library is not installed
  • Test the changes to ensure proper error messages are displayed

Files to Modify

  1. rcon_manager.php - Add helper method to check library availability separately
  2. active_players.php - Update error message display logic
  3. Possibly admin.php - Add warning about missing library (optional)
Original prompt

This section details on the original issue you should resolve

<issue_title>RCON Features</issue_title>
<issue_description>RCON is not enabled or configured. Please configure RCON in the admin panel to view active players.

I have enabled RCON and entered what I believe to be correct credentials but this message still appears.
I do not believe it to be a firewall issue either as the firewall should be allowing all connections to RCON by my attempt to debug. </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

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.

RCON Features

2 participants