summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 07cd0c64e..b90a801d1 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -23,6 +23,7 @@
#include "actormanager.h"
#include "configuration.h"
#include "flooritem.h"
+#include "game.h"
#include "inventory.h"
#include "item.h"
#include "party.h"
@@ -821,4 +822,17 @@ impHandler0(leaveParty)
return true;
}
+impHandler(warp)
+{
+ int x = 0;
+ int y = 0;
+
+ if (Game::instance() && parse2Int(event.args, x, y))
+ {
+ adminHandler->warp(Game::instance()->getCurrentMapName(),
+ x, y);
+ }
+ return true;
+}
+
} // namespace Actions