Skip to content

Commit

Permalink
Enables the Vanilla Stat System with NS2Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
GhoulofGSG9 committed Sep 8, 2013
1 parent 17499d3 commit fba652f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/shine/extensions/ns2stats/server.lua
Expand Up @@ -53,6 +53,8 @@ Shine.Hook.SetupClassHook("Player","OnJump","OnPlayerJump","PassivePost")
Shine.Hook.SetupClassHook("Player","SetScoreboardChanged","OnPlayerScoreChanged","PassivePost")
Shine.Hook.SetupClassHook("GhostStructureMixin","SetScoreboardChanged","OnGhostCreated","PassivePost")
Shine.Hook.SetupClassHook("GhostStructureMixin","PerformAction","OnGhostDestroyed","PassivePost")
--NS2Ranking
Shine.Hook.SetupClassHook("PlayerRanking","GetTrackServer","EnableNS2Ranking","ActivePre")
--Global hooks
Shine.Hook.SetupGlobalHook("RemoveAllObstacles","OnGameReset","PassivePost")

Expand Down Expand Up @@ -111,6 +113,12 @@ function Plugin:Initialise()
return true
end

-- NS2VanillaStats

function Plugin:EnableNS2Ranking()
return Plugin.Config.Statsonline
end

-- Events

--Game Events
Expand Down

0 comments on commit fba652f

Please sign in to comment.