diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-24 18:02:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-24 18:02:24 +0300 |
commit | 227788d991459081a894428d4455ead1dd8b46d6 (patch) | |
tree | 8ddff2efce648fd89a3a51846650670d23ccc041 /src/actions | |
parent | 52f9607980c82f53bbc76a5bb5825cbff61dc3b5 (diff) | |
download | mv-227788d991459081a894428d4455ead1dd8b46d6.tar.gz mv-227788d991459081a894428d4455ead1dd8b46d6.tar.bz2 mv-227788d991459081a894428d4455ead1dd8b46d6.tar.xz mv-227788d991459081a894428d4455ead1dd8b46d6.zip |
Add chat command /showstats. Also add show level stats to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 0a5d098b1..a6be02b6a 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1281,4 +1281,10 @@ impHandler(commandShowLevel) return true; } +impHandler(commandShowStats) +{ + adminHandler->showStats(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 5740f2eb5..ad03274b8 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -105,6 +105,7 @@ namespace Actions decHandler(playerGmCommands); decHandler(playerCharGmCommands); decHandler(commandShowLevel); + decHandler(commandShowStats); } // namespace Actions #undef decHandler |