From 794630f1c1658da34f5b6de351a5eb3ea6cdfe71 Mon Sep 17 00:00:00 2001 From: James Huston Date: Sun, 30 Nov 2025 18:51:03 -0500 Subject: [PATCH] fix(mcp): Suppress unused variable warning in gm_command --- src/araxiaonline/mcp/ServerTools.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/araxiaonline/mcp/ServerTools.cpp b/src/araxiaonline/mcp/ServerTools.cpp index 83e645629b..23d4b65bc3 100644 --- a/src/araxiaonline/mcp/ServerTools.cpp +++ b/src/araxiaonline/mcp/ServerTools.cpp @@ -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},