summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/adminhandler.cpp20
-rw-r--r--src/net/ea/adminhandler.h8
2 files changed, 28 insertions, 0 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp
index 9e1956edd..5e1c188a0 100644
--- a/src/net/ea/adminhandler.cpp
+++ b/src/net/ea/adminhandler.cpp
@@ -72,6 +72,26 @@ void AdminHandler::warp(const std::string &map, const int x, const int y) const
"@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL);
}
+void AdminHandler::gotoName(const std::string &name) const
+{
+ Net::getChatHandler()->talk("@goto " + name, GENERAL_CHANNEL);
+}
+
+void AdminHandler::recallName(const std::string &name) const
+{
+ Net::getChatHandler()->talk("@recall " + name, GENERAL_CHANNEL);
+}
+
+void AdminHandler::reviveName(const std::string &name) const
+{
+ Net::getChatHandler()->talk("@revive " + name, GENERAL_CHANNEL);
+}
+
+void AdminHandler::ipcheckName(const std::string &name) const
+{
+ Net::getChatHandler()->talk("@ipcheck " + name, GENERAL_CHANNEL);
+}
+
void AdminHandler::createItems(const int id, const int color, const int amount)
{
if (serverVersion < 1)
diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h
index fb0ddfd0c..aeaa1154f 100644
--- a/src/net/ea/adminhandler.h
+++ b/src/net/ea/adminhandler.h
@@ -56,6 +56,14 @@ class AdminHandler : public Net::AdminHandler
virtual void warp(const std::string &map,
const int x, const int y) const override;
+ void gotoName(const std::string &name) const;
+
+ void recallName(const std::string &name) const;
+
+ void reviveName(const std::string &name) const;
+
+ void ipcheckName(const std::string &name) const;
+
void createItems(const int id, const int color,
const int amount);
};