Skip to content

Commit

Permalink
fix player chat links
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Jun 26, 2019
1 parent ce43b86 commit a5e10f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/chat-notifier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ end
function TheClassicRaceChatNotifier:OnDing(playerInfo, rank)
if rank == 1 then
if playerInfo.level == self.Config.MaxLevel then
TheClassicRace:PPrint("The race is over! Gratz to " .. playerInfo.name .. ", first to reach max level!!")
TheClassicRace:PPrint("The race is over! Gratz to " .. TheClassicRace:PlayerChatLink(playerInfo.name) .. ", first to reach max level!!")
else
TheClassicRace:PPrint("Gratz to " .. TheClassicRace:PlayerChatLink(playerInfo.name) .. ", " ..
"first to reach level " .. playerInfo.level .. "!")
end
else
if playerInfo.level == self.Config.MaxLevel then
TheClassicRace:PPrint("Gratz to " .. playerInfo.name .. ", reached max level as #" .. rank .. "!")
TheClassicRace:PPrint("Gratz to " .. TheClassicRace:PlayerChatLink(playerInfo.name) .. ", reached max level as #" .. rank .. "!")
else
TheClassicRace:PPrint("Gratz to " .. playerInfo.name .. ", reached level " .. playerInfo.level .. "! " ..
TheClassicRace:PPrint("Gratz to " .. TheClassicRace:PlayerChatLink(playerInfo.name) .. ", reached level " .. playerInfo.level .. "! " ..
"Currently rank #" .. rank .. " in the race!")
end
end
Expand Down

0 comments on commit a5e10f1

Please sign in to comment.