From 04407be1cc79dcc9922586b760539af5a97b2426 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; +}