diff --git a/src/mod-double-xp-weekend.cpp b/src/mod-double-xp-weekend.cpp index 6ee4df7..4427485 100644 --- a/src/mod-double-xp-weekend.cpp +++ b/src/mod-double-xp-weekend.cpp @@ -65,11 +65,11 @@ class DoubleXpWeekend : public PlayerScript { if (IsEventActive() && !sConfigMgr->GetOption("XPWeekend.AlwaysEnabled", false)) { - ChatHandler(player->GetSession()).PSendSysMessage("It's the weekend! Your XP rate has been set to: %u", GetExperienceRate(player)); + ChatHandler(player->GetSession()).PSendSysMessage("It's the weekend! Your XP rate has been set to: {}", GetExperienceRate(player)); } else if (IsEventActive() && sConfigMgr->GetOption("XPWeekend.AlwaysEnabled", false)) { - ChatHandler(player->GetSession()).PSendSysMessage("Your XP rate has been set to: %u", GetExperienceRate(player)); + ChatHandler(player->GetSession()).PSendSysMessage("Your XP rate has been set to: {}", GetExperienceRate(player)); } else { @@ -90,7 +90,7 @@ class DoubleXpWeekend : public PlayerScript return; } - if (player->getLevel() >= sConfigMgr->GetOption("XPWeekend.MaxLevel", 80)) + if (player->GetLevel() >= sConfigMgr->GetOption("XPWeekend.MaxLevel", 80)) { return; }