Skip to content

Commit a0c60a5

Browse files
authored
Merge pull request #45 from MrSlntGhost/master
Fix build error: Rename player hooks
2 parents 7dc1b76 + a431dbd commit a0c60a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/individual_xp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class IndividualXP : public PlayerScript
6363
public:
6464
IndividualXP() : PlayerScript("IndividualXP") {}
6565

66-
void OnLogin(Player* player) override
66+
void OnPlayerLogin(Player* player) override
6767
{
6868
QueryResult result = CharacterDatabase.Query("SELECT `XPRate` FROM `individualxp` WHERE `CharacterGUID`='{}'", player->GetGUID().GetCounter());
6969

@@ -101,15 +101,15 @@ class IndividualXP : public PlayerScript
101101
}
102102
}
103103

104-
void OnLogout(Player* player) override
104+
void OnPlayerLogout(Player* player) override
105105
{
106106
if (PlayerXpRate* data = player->CustomData.Get<PlayerXpRate>("IndividualXP"))
107107
{
108108
CharacterDatabase.DirectExecute("REPLACE INTO `individualxp` (`CharacterGUID`, `XPRate`) VALUES ('{}', '{}');", player->GetGUID().GetCounter(), data->XPRate);
109109
}
110110
}
111111

112-
void OnGiveXP(Player* player, uint32& amount, Unit* /*victim*/, uint8 /*xpSource*/) override
112+
void OnPlayerGiveXP(Player* player, uint32& amount, Unit* /*victim*/, uint8 /*xpSource*/) override
113113
{
114114
if (individualXp.Enabled)
115115
{

0 commit comments

Comments
 (0)