mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Update notify.lua
This commit is contained in:
@@ -111,7 +111,10 @@ local notifyFunc = {
|
|||||||
--- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId)
|
--- triggerNotify("Alert", "You have been warned for misconduct.", "error", playerId)
|
||||||
--- ```
|
--- ```
|
||||||
function triggerNotify(title, message, type, src)
|
function triggerNotify(title, message, type, src)
|
||||||
if not Config.System?.Notify then debugPrint("Notify triggered but not set up") return end
|
if not Config or not Config.System or not Config.System.Notify then
|
||||||
|
print("Notify triggered but not set up")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if src then
|
if src then
|
||||||
notifyFunc[Config.System.Notify].server(title, message, type, src)
|
notifyFunc[Config.System.Notify].server(title, message, type, src)
|
||||||
|
|||||||
Reference in New Issue
Block a user