Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
143 stars 127 forks source link

Free Premium Issue with login.php #497

Closed EPuncker closed 2 years ago

EPuncker commented 2 years ago

We need login.php to gather freePremium setting from config.lua in order to ispremium to work correctly.

Current situation with freePremium set to true is that every account is being shown as free account because the client gather that info only from login.php now, and having an account as free, make lots of weirds widgets to appear in game and even some client features unavailable.

bellow is how gesior did it on his aac: 'ispremium' => Website::getServerConfig()->getValue('freePremium') ? true : $account->isPremium(),