diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/ea/adminhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/ea/adminhandler.h | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index 0fe07136a..2d0dc72f4 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -124,6 +124,8 @@ class AdminHandler notfinal virtual void locatePlayer(const std::string &name) const = 0; virtual void showAccountInfo(const std::string &name) const = 0; + + virtual void spawn(const std::string &name) const = 0; }; } // namespace Net diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 8aa0fc041..d209cc47f 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -92,4 +92,9 @@ void AdminHandler::slide(const int x, const int y) const } } +void AdminHandler::spawn(const std::string &name) const +{ + chatHandler->talk("@spawn " + name, GENERAL_CHANNEL); +} + } // namespace Ea diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h index 9acb1c8f3..3d6adf433 100644 --- a/src/net/ea/adminhandler.h +++ b/src/net/ea/adminhandler.h @@ -60,6 +60,8 @@ class AdminHandler notfinal : public Net::AdminHandler void createItems(const int id, const ItemColor color, const int amount) const override final; + + void spawn(const std::string &name) const override final; }; } // namespace Ea |