diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:13:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:13:04 +0300 |
commit | 704b5b31fea63483c81f0744d88e46a856573424 (patch) | |
tree | 37a3530e9be27f0aca4283ec90944174aae542fa /src/actions | |
parent | 25bf3308cf490313b4a86b78643226f078ce4f7e (diff) | |
download | manaverse-704b5b31fea63483c81f0744d88e46a856573424.tar.gz manaverse-704b5b31fea63483c81f0744d88e46a856573424.tar.bz2 manaverse-704b5b31fea63483c81f0744d88e46a856573424.tar.xz manaverse-704b5b31fea63483c81f0744d88e46a856573424.zip |
Add chat command /killer. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 7 insertions, 0 deletions
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 |