Skip to content

Commit

Permalink
Add message endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
coasterteam authored Dec 18, 2021
1 parent a7eeccc commit 9934ce9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MainModule/Server/Plugins/Cross_Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ return function(Vargs)
Loadstring = function(jobId, source)
Core.Loadstring(source, GetEnv{})()
end;

Message = function(jobId, fromPlayer, message, time)
server.Functions.Message("Global Message from " .. tostring(fromPlayer), message, service.GetPlayers(), true, time)
end;

DataStoreUpdate = function(jobId, type, data)
if type and data then
Expand Down

0 comments on commit 9934ce9

Please sign in to comment.