summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-24 18:02:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-24 18:02:24 +0300
commit227788d991459081a894428d4455ead1dd8b46d6 (patch)
tree8ddff2efce648fd89a3a51846650670d23ccc041 /src/actions
parent52f9607980c82f53bbc76a5bb5825cbff61dc3b5 (diff)
downloadmanaplus-227788d991459081a894428d4455ead1dd8b46d6.tar.gz
manaplus-227788d991459081a894428d4455ead1dd8b46d6.tar.bz2
manaplus-227788d991459081a894428d4455ead1dd8b46d6.tar.xz
manaplus-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.cpp6
-rw-r--r--src/actions/commands.h1
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