We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a9e9f commit e6e0732Copy full SHA for e6e0732
src/MyPlayer.cpp
@@ -18,12 +18,10 @@ class MyPlayer : public PlayerScript
18
public:
19
MyPlayer() : PlayerScript("MyPlayer") { }
20
21
- void OnLogin(Player* player) override
+ void OnPlayerLogin(Player* player) override
22
{
23
if (sConfigMgr->GetOption<bool>("MyModule.Enable", false))
24
- {
25
ChatHandler(player->GetSession()).PSendSysMessage(HELLO_WORLD);
26
- }
27
}
28
};
29
0 commit comments