2022-06-23 17:29:08 +00:00
|
|
|
local util = require("utils")
|
|
|
|
|
|
|
|
return function(commands)
|
|
|
|
function commands.playerLeave(clientID)
|
|
|
|
print("Old client disconnected. id: [" .. clientID .. "]")
|
|
|
|
clients[clientID] = nil
|
2022-07-03 18:32:45 +00:00
|
|
|
broadcast(clientID, "playerLeave")
|
2022-06-23 17:29:08 +00:00
|
|
|
end
|
|
|
|
end
|