summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 19:05:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 19:05:31 +0300
commit77392dfa39913e4d6c51934deab51088da878e7a (patch)
treea6f56d693f5847a22e1514d17f7752798b84597b /src/actions
parent4eb67aee829ba4f7b59d5a8f885a472d843e679a (diff)
downloadmanaverse-77392dfa39913e4d6c51934deab51088da878e7a.tar.gz
manaverse-77392dfa39913e4d6c51934deab51088da878e7a.tar.bz2
manaverse-77392dfa39913e4d6c51934deab51088da878e7a.tar.xz
manaverse-77392dfa39913e4d6c51934deab51088da878e7a.zip
Add chat command /randomwarp. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp6
-rw-r--r--src/actions/commands.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 771bf0ed5..c317af86a 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1381,4 +1381,10 @@ impHandler(commandLoadPosition)
return true;
}
+impHandler(commandRandomWarp)
+{
+ adminHandler->randomWarp(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index c7b1b60cb..bf7ebe03c 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -118,6 +118,7 @@ namespace Actions
decHandler(commandSpawnEvilClone);
decHandler(commandSavePosition);
decHandler(commandLoadPosition);
+ decHandler(commandRandomWarp);
} // namespace Actions
#undef decHandler