-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool restrictions not working #21
Comments
What version are you running? Have you made sure you're up to date? |
As soon as i noticed this i deleted my svn copy of urs and redownloaded it from github, i am on the latest version Sent from my iPhone
|
Is there any type of auto download tool on your host? There's no chance at all that your copy is outdated? This problem should have been fixed a couple of weeks ago by the sounds of it. |
Running into something similar. I've got a fresh install of URS from Github, and I noticed no logging was appearing in console for tool use (everything else -- sents, sweps, etc -- were logging fine). I added some debugging prints() to URS.CheckRestrictedTool() and confirmed that its not getting called when tools are used. If I roll back to my previous version of URS (a month or so old), everything works fine. |
I ended up reinstalling a second time and it works now
|
I think I know what's going on for me. Looks like the hook priority for URS was changed from -10 to 1. I may have another addon hooked into CanTool that's (unfortunately) returning a true earlier in priority than URS, therefore preventing URS from running its hook. I changed URS hook priority to -10 and its working as expected for me. |
You must be using an outdated ULib addon then, otherwise that wouldn't work. URS runs with a low priority so it can return true for limits. Perhaps in the future, it would be worth making limits and restrictions in separate hooks. |
I joined my server today to see people using the duplicator, which I have had restricted for over a year now.
Would you like my restrictions.txt again?
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned/used tool duplicator -=RESTRICTED=-
☣☢Bryantdl7☢☣<STEAM_X:X:> spawned model models/props_vehicles/car003b_physics.mdl
"duplicator" is a restricted tool from your rank.
The text was updated successfully, but these errors were encountered: