Skip to content

Commit

Permalink
Clairfy disconnect message.
Browse files Browse the repository at this point in the history
  • Loading branch information
MDFL64 committed May 15, 2017
1 parent ef4b667 commit 054029d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/voxelate/networking/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ function Router:__ctor(voxelate)

addPlayerTimeout(ply,"Voxelate.PlayerConnectTimeout",25,function()
if not self.PeerIDsEx[ply] then
ply:Kick("Failed to connect and authenticate with ENet (timed out)")
ply:Kick("Voxelate failed to establish a connection. If you do not have Voxelate, you need to install it to play on this server. You may also have an old verison of Voxelate, or it may have failed to load.")
end
end)
end
end)

-- TODO do we really have to go through the trouble of a graceful disconnect here? The client has already disconnectd through the game, and their module has probably already been killed.
gameevent.Listen("player_disconnect")
hook.Add("player_disconnect","Voxelate.ManualPlayerDisconnect",function(data)
local name = data.name
Expand Down

0 comments on commit 054029d

Please sign in to comment.