summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-24 18:28:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-24 18:28:40 +0300
commitbb604b783f5909d068ced29e17a698a37115ebb6 (patch)
tree9ffb791e7ede21177f5377ac18227f7596f7ccee /src/actions
parent7e3a0e3668788cc9e63b0bc7f69ce793e2680ec4 (diff)
downloadmanaverse-bb604b783f5909d068ced29e17a698a37115ebb6.tar.gz
manaverse-bb604b783f5909d068ced29e17a698a37115ebb6.tar.bz2
manaverse-bb604b783f5909d068ced29e17a698a37115ebb6.tar.xz
manaverse-bb604b783f5909d068ced29e17a698a37115ebb6.zip
Add chat command /showcart. Also add show cart 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 43fca1874..503cb95dc 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1293,4 +1293,10 @@ impHandler(commandShowStorage)
return true;
}
+impHandler(commandShowCart)
+{
+ adminHandler->showCartList(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index f883aa1b0..c425d7086 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -107,6 +107,7 @@ namespace Actions
decHandler(commandShowLevel);
decHandler(commandShowStats);
decHandler(commandShowStorage);
+ decHandler(commandShowCart);
} // namespace Actions
#undef decHandler