diff --git a/modules/bridge/nd/server.lua b/modules/bridge/nd/server.lua index 8c6ac758fc..ddbf8a871a 100644 --- a/modules/bridge/nd/server.lua +++ b/modules/bridge/nd/server.lua @@ -98,6 +98,15 @@ function server.buyLicense(inv, license) return true, "have_purchased" end +---@diagnostic disable-next-line: duplicate-set-field +function server.isPlayerBoss(playerId, group) + local player = NDCore.getPlayer(playerId) + if not player then return end + + local groupInfo = player.getGroup(group) + return groupInfo and groupInfo.isBoss +end + ---@param entityId number ---@return number | string ---@diagnostic disable-next-line: duplicate-set-field