summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-24 17:09:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-24 17:09:20 +0300
commit66c5eb00b62cba0244446a8306dde1ae138d2e06 (patch)
tree41fefef24147487d9753e24ca5b4e340f14b554f /src/actions
parentf0906ab944c982da76a5c123100e567e1db680ac (diff)
downloadmv-66c5eb00b62cba0244446a8306dde1ae138d2e06.tar.gz
mv-66c5eb00b62cba0244446a8306dde1ae138d2e06.tar.bz2
mv-66c5eb00b62cba0244446a8306dde1ae138d2e06.tar.xz
mv-66c5eb00b62cba0244446a8306dde1ae138d2e06.zip
Add chat command /gmcommands. Also add show commands 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 f1ac3d962..8bccbc9cd 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1263,4 +1263,10 @@ impHandler(mobSpawnSearch)
return true;
}
+impHandler(playerGmCommands)
+{
+ adminHandler->playerGmCommands(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 1df1effd2..ffcdde479 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -102,6 +102,7 @@ namespace Actions
decHandler(whoDrops);
decHandler(mobSearch);
decHandler(mobSpawnSearch);
+ decHandler(playerGmCommands);
} // namespace Actions
#undef decHandler