Fix #446 TFS 1.3 premium time

which was implemented here: https://github.com/otland/forgottenserver/pull/2813
and merged 28th october 2020.
This commit is contained in:
Znote
2020-10-31 14:29:29 +01:00
parent a88d3710fb
commit fa5fac75a7
4 changed files with 28 additions and 14 deletions

View File

@@ -111,10 +111,9 @@ if (user_logged_in() === true) {
// If character is offline
if ($char_data['online'] == 0) {
$acc_data = user_data($user_data['id'], 'premdays');
// If character is premium
if ($config['guild_require_premium'] == false || $acc_data['premdays'] > 0) {
if ($config['guild_require_premium'] == false || $user_data['premdays'] > 0) {
if (get_character_guild_rank($user_id) < 1) {