forgot to add config file for script.

This commit is contained in:
lee1991
2017-05-25 15:40:23 +01:00
parent 93259d7090
commit d1b2ca2bc2

View File

@@ -22,7 +22,9 @@ public:
bool OnUse(Player* player, Item* item, SpellCastTargets const& /*targets*/) override // Any hook here
{
if (!sConfigMgr->GetBoolDefault("PremiumAccount", true))
return false;
QueryResult result = CharacterDatabase.PQuery("SELECT AccountId FROM premium WHERE active = 1 and AccountId = %u", player->GetSession()->GetAccountId());
if (!result)