From 1c229ff768b0a6828e80ce3f76c47bda2a951452 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 12 May 2016 19:51:52 +0200 Subject: [PATCH] Changed: Added new command /playedTime that displays time played with this character --- code/ryzom/client/src/commands.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/ryzom/client/src/commands.cpp b/code/ryzom/client/src/commands.cpp index 3308ee7ad..cb8c5d9df 100644 --- a/code/ryzom/client/src/commands.cpp +++ b/code/ryzom/client/src/commands.cpp @@ -5798,3 +5798,11 @@ NLMISC_COMMAND(time, "Shows information about the current time", "") CInterfaceManager::getInstance()->displaySystemInfo(msg, "AROUND"); return true; } + +NLMISC_COMMAND(playedTime, "Display character played time", "") +{ + ucstring msg = CI18N::get("uiPlayedTime"); + strFindReplace(msg, "%time", NLMISC::secondsToHumanReadable(CharPlayedTime)); + CInterfaceManager::getInstance()->displaySystemInfo(msg, "AROUND"); + return true; +}