From 66c5eb00b62cba0244446a8306dde1ae138d2e06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 17:09:20 +0300 Subject: Add chat command /gmcommands. Also add show commands to player context menu. --- src/actions/commands.cpp | 6 ++++++ src/actions/commands.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/actions') 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 -- cgit v1.2.3-70-g09d2