From 704b5b31fea63483c81f0744d88e46a856573424 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Feb 2016 20:13:04 +0300 Subject: Add chat command /killer. Also add it 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 13bb0b622..6c7cb1d8f 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1396,4 +1396,10 @@ impHandler(commandGotoNpc) return true; } +impHandler(commandKiller) +{ + adminHandler->killer(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index f1dc28356..9328f1d2c 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -120,6 +120,7 @@ namespace Actions decHandler(commandLoadPosition); decHandler(commandRandomWarp); decHandler(commandGotoNpc); + decHandler(commandKiller); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2