Skip to content

Commit

Permalink
improve: online record to core (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires authored Mar 2, 2024
1 parent cd32e5e commit a4aae29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local globalevent = GlobalEvent("Player Record")
local onlineRecord = GlobalEvent("OnlineRecord")

function globalevent.onRecord(current, old)
function onlineRecord.onRecord(current, old)
addEvent(Game.broadcastMessage, 150, "New record: " .. current .. " players are logged in.", MESSAGE_LOGIN)
return true
end

globalevent:register()
onlineRecord:register()

0 comments on commit a4aae29

Please sign in to comment.