mirror of
https://github.com/freekode/mod-reward-played-time-improved.git
synced 2026-01-13 08:37:18 +00:00
Few Errors
Fixed a few issues with the reward system
This commit is contained in:
@@ -15,10 +15,10 @@ public:
|
||||
uint32 rewardtimer = urand(2 * HOUR*IN_MILLISECONDS, 4 * HOUR*IN_MILLISECONDS);
|
||||
int32 roll = urand(1, 1000);
|
||||
|
||||
void UpdatePlayer(Player* player, uint32 p_time)
|
||||
void OnBeforePlayerUpdate(Player* player, uint32 p_time)
|
||||
{
|
||||
|
||||
if (!sConfigMgr->GetBoolDefault("PremiumAccount", true))
|
||||
if (!sConfigMgr->GetBoolDefault("RewardSystemEnable", true))
|
||||
return;
|
||||
{
|
||||
if (rewardtimer <= p_time)
|
||||
|
||||
Reference in New Issue
Block a user