Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-07-24 20:57:52 +08:00
80 changed files with 867 additions and 922 deletions

View File

@@ -1476,7 +1476,7 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
uint32 memberLimit = sConfigMgr->GetOption<uint32>("Guild.MemberLimit", 0);
if (memberLimit > 0 && player->GetGuild()->GetMemberCount() >= memberLimit)
{
ChatHandler(player->GetSession()).PSendSysMessage("Your guild has reached the maximum amount of members (%u). You cannot send another invite until the guild member count is lower.", memberLimit);
ChatHandler(player->GetSession()).PSendSysMessage("Your guild has reached the maximum amount of members ({}). You cannot send another invite until the guild member count is lower.", memberLimit);
SendCommandResult(session, GUILD_COMMAND_INVITE, ERR_GUILD_INTERNAL, name);
return;
}