Skip to content

Commit 3389f6f

Browse files
committed
Update server.lua
Closes #2
1 parent 8234d21 commit 3389f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Serverlogging/server.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ end)
3232

3333
AddEventHandler('playerConnecting', function()
3434
--PerformHttpRequest(DISCORD_WEBHOOK, function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, content = "```CSS\n".. GetPlayerName(source) .. " connecting\n```", avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
35-
sendToDiscord("Server Login", GetPlayerName(source) " is connecting to the server.")
35+
sendToDiscord("Server Login", GetPlayerName(source) .. " is connecting to the server.")
3636
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.")
40+
sendToDiscord("Server Logout", GetPlayerName(source) .. " has disconnected from the server.")
4141
end)
4242

4343
RegisterServerEvent('playerDied')

0 commit comments

Comments
 (0)