Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Merge branch 'develop' into captainsmode
Browse files Browse the repository at this point in the history
  • Loading branch information
GhoulofGSG9 committed Oct 3, 2014
2 parents bec4ade + 3e27d1e commit 3f79c07
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions lua/shine/extensions/norookies/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Plugin.DefaultConfig =
AllowSpectating = false,
BlockMessage = "This server is not rookie friendly",
Kick = true,
Kicktime = 60,
Kicktime = 20,
KickMessage = "You will be kicked in %s seconds",
WaitMessage = "Please wait while your Player data is retrieved",
WaitMessage = "Please wait while your data is retrieved",
}
Plugin.CheckConfig = true
Plugin.CheckConfigTypes = true
Expand All @@ -55,6 +55,30 @@ function Plugin:EndGame( Gamerules, WinningTeam )
Enabled = true
end

function Plugin:OnReceiveSteamData( Client )
local SteamId = Client:GetUserId()
if not InfoHub:GetIsRequestFinished( SteamId ) then return end

local Player = Client:GetControllingPlayer()
self:Check( Player )
end

function Plugin:OnReceiveHiveData( Client )
local SteamId = Client:GetUserId()
if not InfoHub:GetIsRequestFinished( SteamId ) then return end

local Player = Client:GetControllingPlayer()
self:Check( Player )
end

function Plugin:OnReceiveNs2StatsData( Client )
local SteamId = Client:GetUserId()
if not InfoHub:GetIsRequestFinished( SteamId ) then return end

local Player = Client:GetControllingPlayer()
self:Check( Player )
end

function Plugin:CheckCommLogin( CommandStation, Player )
if not self.Config.BlockCC or not Player or not Player.GetClient or Shine.GetHumanPlayerCount() < self.Config.MinPlayer then return end

Expand Down

0 comments on commit 3f79c07

Please sign in to comment.