From 60100c4b30f779fe8f63758f9974891e98816340 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 29 Feb 2016 01:02:46 +0300 Subject: Add chat command /gmpartyleader. Also add it to npc context menu. --- src/actions/commands.cpp | 9 +++++++++ src/actions/commands.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 90ef67f04..bbde5c4a8 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1509,4 +1509,13 @@ impHandler(commandNpcShow) return true; } +impHandler(commandChangePartyLeader) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->changePartyLeader(args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 35c03ce62..efc436c97 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -134,6 +134,7 @@ namespace Actions decHandler(commandNpcMove); decHandler(commandNpcHide); decHandler(commandNpcShow); + decHandler(commandChangePartyLeader); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2