Fixed PLayer Printing when items found

This commit is contained in:
Cooldude2606
2018-01-06 21:37:33 +00:00
parent 3d894cced4
commit 2abd5cc1bb

View File

@@ -39,9 +39,9 @@ local inventorys = {
local _root_tree = {low_items=low_items,med_items=med_items,high_items=high_items}
local function take_action(player,item_name,category)
if category == 'low_items' then player_return({'inventory-search.low',item_name})
elseif category == 'med_items' then player_return({'inventory-search.med',item_name}) Admin.give_warning(player,'<server>','Found A Banned Item',5)
elseif category == 'high_items' then player_return({'inventory-search.high',item_name}) Admin.temp_ban(player,'<server>','Found A Banned Item')
if category == 'low_items' then player_return({'inventory-search.low',item_name},defines.text_color.med,player)
elseif category == 'med_items' then player_return({'inventory-search.med',item_name},defines.text_color.high,player) Admin.give_warning(player,'<server>','Found A Banned Item',5)
elseif category == 'high_items' then player_return({'inventory-search.high',item_name},defines.text_color.crit,player) Admin.temp_ban(player,'<server>','Found A Banned Item')
else return end
end