From 7334ab7df920cd33ac93569d5bdc7b84352b1ddf Mon Sep 17 00:00:00 2001 From: Tyler Karaszewski Date: Fri, 26 Jan 2024 12:36:53 -0800 Subject: [PATCH] Add command count to Status response --- BedrockServer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BedrockServer.cpp b/BedrockServer.cpp index a3cf32321..18c6239fa 100644 --- a/BedrockServer.cpp +++ b/BedrockServer.cpp @@ -1691,10 +1691,11 @@ void BedrockServer::_status(unique_ptr& command) { pluginList.push_back(SComposeJSONObject(pluginData)); } content["isLeader"] = state == SQLiteNodeState::LEADING ? "true" : "false"; - content["plugins"] = SComposeJSONArray(pluginList); - content["state"] = SQLiteNode::stateName(state); - content["version"] = _version; - content["host"] = args["-nodeHost"]; + content["plugins"] = SComposeJSONArray(pluginList); + content["state"] = SQLiteNode::stateName(state); + content["version"] = _version; + content["host"] = args["-nodeHost"]; + content["commandCount"] = BedrockCommand::getCommandCount(); { // Make it known if anything is known to cause crashes.