summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 18:59:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 18:59:40 +0300
commitdd287e360612b175dcb2e118ed20c47902d7e630 (patch)
treee98880fb39aa943f33e56e80f16a559aacc53fd1 /src/actions/commands.cpp
parentb753348ab7153282e6cf539c627dfd1fb9896c42 (diff)
downloadmanaverse-dd287e360612b175dcb2e118ed20c47902d7e630.tar.gz
manaverse-dd287e360612b175dcb2e118ed20c47902d7e630.tar.bz2
manaverse-dd287e360612b175dcb2e118ed20c47902d7e630.tar.xz
manaverse-dd287e360612b175dcb2e118ed20c47902d7e630.zip
Add chat command slide.
New chat command: slide x, y
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 812a9fa63..337174c25 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1049,4 +1049,17 @@ impHandler(serverConfGet)
return true;
}
+impHandler(slide)
+{
+ int x = 0;
+ int y = 0;
+
+ if (adminHandler && parse2Int(event.args, x, y))
+ {
+ adminHandler->slide(x, y);
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions