00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef NET_TMWSERV_ADMINHANDLER_H
00023 #define NET_TMWSERV_ADMINHANDLER_H
00024
00025 #include "net/adminhandler.h"
00026
00027 namespace TmwServ {
00028
00029 class AdminHandler : public Net::AdminHandler
00030 {
00031 public:
00032 AdminHandler();
00033
00034 void announce(const std::string &text);
00035
00036 void localAnnounce(const std::string &text);
00037
00038 void hide(bool hide);
00039
00040 void kick(int playerId);
00041
00042 void kick(const std::string &name);
00043
00044 void ban(int playerId);
00045
00046 void ban(const std::string &name);
00047
00048 void unban(int playerId);
00049
00050 void unban(const std::string &name);
00051
00052 void mute(int playerId, int type, int limit);
00053 };
00054
00055 }
00056
00057 #endif