Project Zomboid

Project Zomboid

51 ratings
简单禁止物品 Easily Ban Items!
   
Award
Favorite
Favorited
Unfavorite
Mods: Build 41
File Size
Posted
Updated
116.066 KB
11 Nov, 2022 @ 8:15am
14 Apr, 2023 @ 8:30pm
6 Change Notes ( view )

Subscribe to download
简单禁止物品 Easily Ban Items!

Description
Have you been tired of limiting players to use some excessively powerful weapons without abadoning a excellent mod?
Are you still repeating the boring process of [modify script - upload to workshop - restart server/game] in order to ban certain items?
Are you still appealling players not to throw cigarette butts, pop cans and candy papers all over the ground, to protect the environment (server memory)?

If yes, this lightweight mod is just for you!
You can easily ban items by adding its ID in the new sandbox option! (For example, to ban the M1911 pistol, you only need to type in "Pistol2". And you don't need to add the prefix, such as "Base.”)
(When you are in Admin mode or use the mod "Debug Menu", you can conveniently find the item ID.)

If you want to change the banned items list in the sandbox option at any time, you can use the admin menu(available in mutiplayer) or the mod "Change Sandbox Options".

MOD principle: Automatically detect the player inventory, and if there exist banned items, they will be deleted.
This mod can be used to ban cigarette butts, cans, candy paper -- players needn't throw them all over the ground anymore, and reduce the burden of server memory!
Or you can ban Harry potter wands, Gatlings, and other too much powerful equipments – increase playing time as well as game experience!

-----------------------------------------------------------------------------------------------------

Q: Does it only detect player's items? Why not delete items in the whole world?
A: Considering the number of containers in the world and the huge amount of items that may be stored inside them, detecting all of those containers will bring more stress to the server (the same reason for player backpacks)! Howerver just detecting the items in players' inventory is much simpler, which reduces 99% calculation but achieves more than 90% effect.





如果喜欢的话可不可以点一个赞呢?



563636668 PZ大聪明服务器群,大聪明都爱玩的服务器!(*thumb*)
-----------------------------------------------------------------------------------------------------
特别感谢 金色喵球 和 千年纹 大佬的指导!

Workshop ID: 2887214193
Mod ID: Easily_Ban_Items
27 Comments
TJX 27 Mar, 2023 @ 10:29pm 
@三猫的太刀侠 感谢,我加你好友了。这个宝石BAN不掉困扰我好几天了
三猫的太刀侠  [author] 27 Mar, 2023 @ 7:18pm 
@TJX
我刚才测试了这四个宝石会正常删除。你可以重进游戏再试试。如果不行的话就加我q发截图给我看吧。
TJX 27 Mar, 2023 @ 8:14am 
@三猫的太刀侠 确定严格检查了大小写,烟头,空罐子是正常的。
三猫的太刀侠  [author] 17 Mar, 2023 @ 7:35pm 
@TJX
唯一原因是没有正确输入ID。请严格检查物品ID的大小写、下划线等是否正确。
TJX 17 Mar, 2023 @ 5:51pm 
@三猫的太刀侠 作者你好, 生化危机MOD 的宝石BAN不掉。
NotARealDentist 4 Mar, 2023 @ 8:07pm 
Thank you for the help ♥

Will this mod ban items from appearing as loot in containers too, or only from players' inventory?
三猫的太刀侠  [author] 4 Mar, 2023 @ 6:01pm 
@Crustancean the soup
Sorry for the carelessness. You can see it in the workshop introduction now.
NotARealDentist 4 Mar, 2023 @ 3:10pm 
What's this mod's ID and workshopitem?
三猫的太刀侠  [author] 2 Mar, 2023 @ 12:13am 
@TTAJ1bl4
No problem, I will add this function on finishing another mod im working on.
TTAJ1bl4 1 Mar, 2023 @ 10:18pm 
You are right. Hovever those players / server owners who need to ban a car, will find a way to get car's id. And it is not so hard so find a car's id with the help of tools like bikinitools.
This mod will be really useful for RP servers using helicopters only for events, or for servers that use many mods with some overlapping mods like KI5 humvee and filibusters that has worse version of humvee, but many other good cars