diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:42:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:42:50 +0300 |
commit | 3fe3a77e1ae0db748a8a0b8d500db24a6a964b44 (patch) | |
tree | aebc36f17eeb2d5ecf675bd3d424f5558422ec60 /src/actions | |
parent | 64a067458ea169b9ff5b9a78ed1a011da86e8bdf (diff) | |
download | mv-3fe3a77e1ae0db748a8a0b8d500db24a6a964b44.tar.gz mv-3fe3a77e1ae0db748a8a0b8d500db24a6a964b44.tar.bz2 mv-3fe3a77e1ae0db748a8a0b8d500db24a6a964b44.tar.xz mv-3fe3a77e1ae0db748a8a0b8d500db24a6a964b44.zip |
Add chat command /gmheal. 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 426c89da7..b3412f50a 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1408,4 +1408,10 @@ impHandler(commandKillable) return true; } +impHandler(commandHeal) +{ + adminHandler->heal(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 19581facc..c84a4de54 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -122,6 +122,7 @@ namespace Actions decHandler(commandGotoNpc); decHandler(commandKiller); decHandler(commandKillable); + decHandler(commandHeal); } // namespace Actions #undef decHandler |