Skip to content

Commit 8891d56

Browse files
authored
Update GmCommands.cpp
1 parent f29c9b3 commit 8891d56

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/GmCommands.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@
22
#include "ScriptMgr.h"
33
#include "Chat.h"
44
#include "Config.h"
5-
class GmCommands : public PlayerScript
6-
{
7-
public:
8-
GmCommands() : PlayerScript("GmCommands") {}
9-
10-
void OnLogin(Player* player) override
11-
{
12-
if (sConfigMgr->GetOption<bool>("GmCommandsModule.Enable", false))
13-
{
14-
ChatHandler(player->GetSession()).PSendSysMessage("Welcome, Game Master!");
15-
}
16-
}
17-
};
185

196
void AddGmCommandScripts()
207
{
21-
new GmCommands();
228
}

0 commit comments

Comments
 (0)