Skip to content

Commit dea434a

Browse files
authored
fix: new hooks name
Align player script function names
1 parent 726326a commit dea434a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mod-keepout.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ class KeepOutPlayerScript : public PlayerScript
9191
public:
9292
KeepOutPlayerScript() : PlayerScript("KeepOutPlayerScript") { }
9393

94-
void OnLogin(Player* player) override
94+
void OnPlayerLogin(Player* player) override
9595
{
9696
if (sConfigMgr->GetOption<bool>("Announcer.Enable", true))
9797
{
9898
ChatHandler(player->GetSession()).PSendSysMessage("This server is running the |cff4CFF00Keep Out |rmodule.");
9999
}
100100
}
101101

102-
void OnUpdateZone(Player* player, uint32 /*newZone*/, uint32 /*newArea*/) override
102+
void OnPlayerUpdateZone(Player* player, uint32 /*newZone*/, uint32 /*newArea*/) override
103103
{
104104
if (mko.keepOutEnabled)
105105
{

0 commit comments

Comments
 (0)