mirror of
https://github.com/telegramcores/mod-premium.git
synced 2026-02-02 10:23:50 +00:00
forgot to add config file for script.
This commit is contained in:
@@ -22,6 +22,8 @@ public:
|
|||||||
|
|
||||||
bool OnUse(Player* player, Item* item, SpellCastTargets const& /*targets*/) override // Any hook here
|
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());
|
QueryResult result = CharacterDatabase.PQuery("SELECT AccountId FROM premium WHERE active = 1 and AccountId = %u", player->GetSession()->GetAccountId());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user