mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-22 14:12:26 +01:00
assert that player is not fake player to broadcast
This commit is contained in:
parent
1263a9fee3
commit
05dfef5153
@ -22,7 +22,9 @@
|
||||
local S = core.get_translator(core.get_current_modname())
|
||||
|
||||
function emeraldbank.broadcast(player, msg, color, timeout)
|
||||
if not player:is_player() then return end
|
||||
if not (player and type(player) ~= "string" and player:is_player()) then
|
||||
return
|
||||
end
|
||||
local name = player:get_player_name()
|
||||
if core.get_modpath("notifications_wrapper") then
|
||||
notifications.queue({
|
||||
|
Loading…
Reference in New Issue
Block a user