ManaPlus
Public Member Functions
Ea::AdminHandler Class Reference

#include <adminhandler.h>

Inheritance diagram for Ea::AdminHandler:
Net::AdminHandler EAthena::AdminHandler TmwAthena::AdminHandler

Public Member Functions

 AdminHandler ()
 
 ~AdminHandler ()
 
void kickName (const std::string &name) const
 
void ban (const int playerId) const
 
void banName (const std::string &name) const
 
void unban (const int playerId) const
 
void unbanName (const std::string &name) const
 
void ipcheckName (const std::string &name) const
 
void createItems (const int id, const ItemColor color, const int amount) const
 
void spawn (const std::string &name) const
 
- Public Member Functions inherited from Net::AdminHandler
 AdminHandler ()
 
virtual void announce (const std::string &text) const =0
 
virtual void localAnnounce (const std::string &text) const =0
 
virtual void hide (const bool hide) const =0
 
virtual void kick (const BeingId playerId) const =0
 
virtual void kickAll () const =0
 
virtual void mute (const Being *const being, const int type, const int limit) const =0
 
virtual void muteName (const std::string &name) const =0
 
virtual void warp (const std::string &map, const int x, const int y) const =0
 
virtual void slide (const int x, const int y) const =0
 
virtual void gotoName (const std::string &name) const =0
 
virtual void recallName (const std::string &name) const =0
 
virtual void alive (const std::string &name) const =0
 
virtual void resetStats () const =0
 
virtual void resetSkills () const =0
 
virtual void requestLogin (const Being *const being) const =0
 
virtual void setTileType (const int x, const int y, const int type) const =0
 
virtual void unequipAll (const Being *const being) const =0
 
virtual void requestStats (const std::string &name) const =0
 
virtual void monsterInfo (const std::string &name) const =0
 
virtual void itemInfo (const std::string &name) const =0
 
virtual void whoDrops (const std::string &name) const =0
 
virtual void mobSearch (const std::string &name) const =0
 
virtual void mobSpawnSearch (const std::string &name) const =0
 
virtual void playerGmCommands (const std::string &name) const =0
 
virtual void playerCharGmCommands (const std::string &name) const =0
 
virtual void showLevel (const std::string &name) const =0
 
virtual void showStats (const std::string &name) const =0
 
virtual void showStorageList (const std::string &name) const =0
 
virtual void showCartList (const std::string &name) const =0
 
virtual void showInventoryList (const std::string &name) const =0
 
virtual void locatePlayer (const std::string &name) const =0
 
virtual void showAccountInfo (const std::string &name) const =0
 
virtual void spawnSlave (const std::string &name) const =0
 
virtual void spawnClone (const std::string &name) const =0
 
virtual void spawnSlaveClone (const std::string &name) const =0
 
virtual void spawnEvilClone (const std::string &name) const =0
 
virtual void savePosition (const std::string &name) const =0
 
virtual void loadPosition (const std::string &name) const =0
 
virtual void randomWarp (const std::string &name) const =0
 
virtual void gotoNpc (const std::string &name) const =0
 
virtual void killer (const std::string &name) const =0
 
virtual void killable (const std::string &name) const =0
 
virtual void heal (const std::string &name) const =0
 
virtual void disguise (const std::string &name) const =0
 
virtual void immortal (const std::string &name) const =0
 
virtual void hide (const std::string &name) const =0
 
virtual void nuke (const std::string &name) const =0
 
virtual void kill (const std::string &name) const =0
 
virtual void jail (const std::string &name) const =0
 
virtual void unjail (const std::string &name) const =0
 
virtual void npcMove (const std::string &name, const int x, const int y) const =0
 
virtual void hideNpc (const std::string &name) const =0
 
virtual void showNpc (const std::string &name) const =0
 
virtual void changePartyLeader (const std::string &name) const =0
 
virtual void partyRecall (const std::string &name) const =0
 
virtual void breakGuild (const std::string &name) const =0
 
virtual void guildRecall (const std::string &name) const =0
 
virtual void changeDress () const =0
 
virtual void resetCooldowns () const =0
 

Detailed Description

Definition at line 34 of file adminhandler.h.

Constructor & Destructor Documentation

◆ AdminHandler()

Ea::AdminHandler::AdminHandler ( )
inline

Definition at line 37 of file adminhandler.h.

38  { }

◆ ~AdminHandler()

Ea::AdminHandler::~AdminHandler ( )
inlinevirtual

Reimplemented from Net::AdminHandler.

Reimplemented in TmwAthena::AdminHandler, and EAthena::AdminHandler.

Definition at line 42 of file adminhandler.h.

43  { }

Member Function Documentation

◆ ban()

void Ea::AdminHandler::ban ( const int  playerId) const
virtual

Implements Net::AdminHandler.

Definition at line 39 of file adminhandler.cpp.

40 {
41  // Not supported
42 }

◆ banName()

void Ea::AdminHandler::banName ( const std::string &  name) const
virtual

Implements Net::AdminHandler.

Definition at line 44 of file adminhandler.cpp.

45 {
46  Gm::runCommand("ban", name);
47 }
void runCommand(const std::string &command, const std::string &params)
Definition: gmfunctions.cpp:35

References Gm::runCommand().

◆ createItems()

void Ea::AdminHandler::createItems ( const int  id,
const ItemColor  color,
const int  amount 
) const
virtual

Implements Net::AdminHandler.

Definition at line 64 of file adminhandler.cpp.

67 {
68  Gm::runCommand("item",
69  strprintf("%d %d", id, amount));
70 }
std::string strprintf(const char *const format,...)

References Gm::runCommand(), and strprintf().

◆ ipcheckName()

void Ea::AdminHandler::ipcheckName ( const std::string &  name) const
virtual

Implements Net::AdminHandler.

Definition at line 59 of file adminhandler.cpp.

60 {
61  Gm::runCommand("ipcheck", name);
62 }

References Gm::runCommand().

◆ kickName()

void Ea::AdminHandler::kickName ( const std::string &  name) const
virtual

Implements Net::AdminHandler.

Definition at line 34 of file adminhandler.cpp.

35 {
36  Gm::runCommand("kick", name);
37 }

References Gm::runCommand().

◆ spawn()

void Ea::AdminHandler::spawn ( const std::string &  name) const
virtual

Implements Net::AdminHandler.

Definition at line 72 of file adminhandler.cpp.

73 {
74  Gm::runCommand("spawn", name);
75 }

References Gm::runCommand().

◆ unban()

void Ea::AdminHandler::unban ( const int  playerId) const
virtual

Implements Net::AdminHandler.

Definition at line 49 of file adminhandler.cpp.

50 {
51  // Not supported
52 }

◆ unbanName()

void Ea::AdminHandler::unbanName ( const std::string &  name) const
virtual

Implements Net::AdminHandler.

Definition at line 54 of file adminhandler.cpp.

55 {
56  Gm::runCommand("unban", name);
57 }

References Gm::runCommand().


The documentation for this class was generated from the following files: