Skip to content

Commit

Permalink
Update protocolgame.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleohanopahala authored Oct 14, 2024
1 parent 92c07cf commit cc63534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ void ProtocolGame::login(const std::string &name, uint32_t accountId, OperatingS
return;
}

if (g_configManager().getBoolean(ONLY_PREMIUM_ACCOUNT) && !player->isPremium() && (player->getGroup()->id < GROUP_TYPE_GAMEMASTER || player->getAccountType() < ACCOUNT_TYPE_GAMEMASTER)) {
if (g_configManager().getBoolean(ONLY_PREMIUM_ACCOUNT) && !player->isPremium() && (player->getGroup()->id < GROUP_TYPE_GAMEMASTER || player->getAccountType() >= ACCOUNT_TYPE_GAMEMASTER)) {
g_game().removePlayerUniqueLogin(player);
disconnectClient("Your premium time for this account is out.\n\nTo play please buy additional premium time from our website");
return;
Expand Down

0 comments on commit cc63534

Please sign in to comment.