From 9934ce9c455bfcb434793a3e6ff0814ff4b277ee Mon Sep 17 00:00:00 2001 From: Coasterteam Date: Sat, 18 Dec 2021 14:11:42 -0500 Subject: [PATCH] Add message endpoint --- MainModule/Server/Plugins/Cross_Server.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MainModule/Server/Plugins/Cross_Server.lua b/MainModule/Server/Plugins/Cross_Server.lua index cdffb5a5a6..f09ce47a3e 100644 --- a/MainModule/Server/Plugins/Cross_Server.lua +++ b/MainModule/Server/Plugins/Cross_Server.lua @@ -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