fix(mcp): Suppress unused variable warning in gm_command

This commit is contained in:
2025-11-30 18:51:03 -05:00
parent 5a260341ce
commit 794630f1c1

View File

@@ -146,19 +146,14 @@ void RegisterServerTools()
TC_LOG_INFO("araxia.mcp", "[MCP] Executing GM command: .%s (player context: %s)",
command.c_str(), playerName.empty() ? "none" : playerName.c_str());
// Find player session if specified
WorldSession* session = nullptr;
// Find player session if specified (for future ChatHandler integration)
// TODO: Implement proper command execution via ChatHandler
if (!playerName.empty())
{
Player* player = ObjectAccessor::FindPlayerByName(playerName);
if (player)
session = player->GetSession();
(void)player; // Suppress unused warning until ChatHandler is implemented
}
// For commands that don't need a player, we can use console execution
// For now, log what would be executed
// TODO: Implement proper command execution via ChatHandler
return {
{"success", true},
{"command", command},