feat(addons): implement nukeprotect

This commit is contained in:
oof2win2
2022-05-14 23:24:54 +02:00
parent b164e4dd68
commit 5ec5a0efad
5 changed files with 95 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ return {
'modules.addons.report-jail',
'modules.addons.protection-jail',
'modules.addons.deconlog',
'modules.addons.nukeprotect',
--- Data
'modules.data.statistics',

View File

@@ -223,7 +223,8 @@ Roles.new_role('Regular','Reg')
'command/go-to-spawn',
'command/me',
'standard-decon',
'bypass-entity-protection'
'bypass-entity-protection',
'bypass-nukeprotect'
}
:set_auto_assign_condition(function(player)
if player.online_time >= hours3 then

11
config/nukeprotect.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
ammo = {
["atomic-bomb"] = true
}, -- @setting ammo The items to not allow in the player's ammo inventory
armor = {}, -- @setting armor The items to not allow in the player's armor inventory
gun = {}, -- @setting gun The items to not allow in the player's gun inventory
main = {
["atomic-bomb"] = true
}, -- @setting main The items to not allow in the player's main inventory
ignore_permisison = "bypass-nukeprotect" -- @setting ignore_permisison The permission that nukeprotect will ignore
}