Skip to content
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

Closed
Bryantdl7 opened this issue Mar 31, 2015 · 7 comments
Closed

Tool restrictions not working #21

Bryantdl7 opened this issue Mar 31, 2015 · 7 comments
Labels

Comments

@Bryantdl7
Copy link

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.

@Aaron113
Copy link
Owner

What version are you running? Have you made sure you're up to date?

@Bryantdl7
Copy link
Author

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

On Mar 31, 2015, at 5:58 PM, Aaron notifications@github.com wrote:

What version are you running? Have you made sure you're up to date?


Reply to this email directly or view it on GitHub.

@Aaron113
Copy link
Owner

Aaron113 commented Apr 1, 2015

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.

@ascentechit
Copy link

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.

@Bryantdl7
Copy link
Author

I ended up reinstalling a second time and it works now

On Apr 9, 2015, at 1:45 PM, ascentechit notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHub.

@ascentechit
Copy link

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.

@Aaron113
Copy link
Owner

Aaron113 commented Apr 9, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants