Skip to content

Commit

Permalink
scoreboard: better AFK reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
lancehilliard committed Sep 4, 2017
1 parent b974ba5 commit e41d466
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mods/tgns/output/lua/shine/extensions/scoreboard/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ function Plugin:Initialise()
self.Enabled = true
self:CreateCommands()

TGNS.RegisterEventHook("OnEverySecond", function()
if not TGNS.IsGameInProgress() then
TGNS.DoFor(TGNS.GetPlayerList(), function(p)
self:AnnouncePlayerPrefix(p)
end)
end
end)

TGNS.RegisterEventHook("AFKChanged", function(client, playerIsAfk)
self:AnnouncePlayerPrefix(TGNS.GetPlayer(client))
end)
Expand Down

0 comments on commit e41d466

Please sign in to comment.