-
-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: online record to core (#2355)
- Loading branch information
1 parent
cd32e5e
commit a4aae29
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
data-otservbr-global/scripts/globalevents/others/online_record.lua
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
data-canary/scripts/globalevents/record.lua → data/scripts/globalevents/online_record.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |