Weol / wuma

A Garry's Mod server addon for managing usergroup- and user-specific restrictions, limits, and loadouts
Apache License 2.0
15 stars 7 forks source link

Can you make it so you cant spawn restricted items using dupe and advanced dupe 2 ? #15

Closed Synkstar closed 5 years ago

Synkstar commented 5 years ago

Right now people can bypass restrictions using duplicator if you don't have it restricted. I want it so I can allow dupe without people bypassing restrictions. Thank you for your time.

Weol commented 5 years ago

Hmm, this should already be a feature. Can you check if you can bypass ALL restrictions, or just restrictions on certain things?

Synkstar commented 5 years ago

I tried expression 2. If I get the time I will try other things.

Synkstar commented 5 years ago

It doesnt allow restricted props to be duped

Synkstar commented 5 years ago

But it does allow sents like balls for example

Weol commented 5 years ago

That is odd, I'll have closer look. Can you link me a list of any addons you are using? It will help me recreate your issue.

Synkstar commented 5 years ago

https://steamcommunity.com/sharedfiles/filedetails/?id=1401467255

Synkstar commented 5 years ago

I mean it doesnt allow restricted props to be duped but it does allow restricted sents and restricted wire things for example

Weol commented 5 years ago

What kind of restriction are you using to restrict these? Because entities that are spawned with tools are often not listed in the "Entities" list. Wire expression2 for example, the tool spawns an entity called "gmod_wire_expression2", that must be restricted in order to prevent it from beeing spawned by the duplicator.

I'll see if I can do something to make those entities easier to find.

Synkstar commented 5 years ago

Oh that makes sense I was using the tool restriction for expression and the sent restrictions for the ball

Weol commented 5 years ago

I just pushed an update (https://github.com/Weol/wuma/commit/10ffb694a77a3934b4a59c43dce69571361932b3) that adds some entities that were missing to the entity restriction list. I can't promise that all items for all addons will be there, but hopefully they will. I tested it with wiremod and darkrp atleast.

If you have trouble finding which entity corresponds to which tool, you can set the "Log level" setting to "Debug", then every restriction check will be printed to the server console, and you can see the entity names that are checked.