mirror of
https://github.com/telegramcores/mod-premium.git
synced 2026-01-13 00:58:36 +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
|
||||
{
|
||||
if (!sConfigMgr->GetBoolDefault("PremiumAccount", true))
|
||||
return false;
|
||||
|
||||
QueryResult result = CharacterDatabase.PQuery("SELECT AccountId FROM premium WHERE active = 1 and AccountId = %u", player->GetSession()->GetAccountId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user