Skip to content

Commit 84c52fe

Browse files
committed
Added reason to disconnect
1 parent c16245f commit 84c52fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Serverlogging/server.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end)
3737

3838
AddEventHandler('playerDropped', function(reason)
3939
--PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, content = "```fix\n".. GetPlayerName(source) .. " left ( ".. reason .. " )\n```", avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
40-
sendToDiscord("Server Logout", GetPlayerName(source) .. " has disconnected from the server.", 16711680)
40+
sendToDiscord("Server Logout", GetPlayerName(source) .. " has left the server. \n Reason: " .. reason, 16711680)
4141
end)
4242

4343
RegisterServerEvent('playerDied')

0 commit comments

Comments
 (0)