Skip to content

Commit

Permalink
Inform players of chat limits only when they are enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jun 14, 2024
1 parent db484cd commit 249cc77
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,10 @@ function LootReserve.Server:ResumeSession()
if self.Settings.ChatReservesList then
if self.CurrentSession.Settings.Blind then
LootReserve:SendChatMessage("To see your reserves, whisper me: !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionResume));
elseif self.Settings.ChatReservesListLimit > 0 then
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves [ItemLinkOrName] or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
else
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionResume));
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
end
end
end
Expand All @@ -2005,6 +2007,8 @@ function LootReserve.Server:ResumeSession()
if self.Settings.ChatReservesList then
if self.CurrentSession.Settings.Blind then
LootReserve:SendChatMessage("To see your reserves, whisper me: !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
elseif self.Settings.ChatReservesListLimit > 0 then
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves [ItemLinkOrName] or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
else
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
end
Expand Down Expand Up @@ -4054,8 +4058,10 @@ function LootReserve.Server:BroadcastInstructions()
if self.Settings.ChatReservesList then
if self.CurrentSession.Settings.Blind then
LootReserve:SendChatMessage("To see your reserves, whisper me: !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionInstructions));
elseif self.Settings.ChatReservesListLimit > 0 then
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves [ItemLinkOrName] or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
else
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionInstructions));
LootReserve:SendChatMessage("To see reserves made, whisper me: !reserves or !myreserves", self:GetChatChannel(LootReserve.Constants.ChatAnnouncement.SessionStart));
end
end
end
Expand Down

0 comments on commit 249cc77

Please sign in to comment.