Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: YourPalRob on April 17, 2013, 05:50:02 AM
-
I currently grant access to voteban for all my regulars but they keep banning people for 999999 minutes instead of 60 which would be suitable. I was wondering if there's a way to limit the maximum amount of time to 60 minutes?
-
yes i believe its in the restrictions if i remember correctly
-
Any chance you could me more on that, I'm pretty confused.
-
To allow regular users to voteban other regular users (only) for up to 60 minutes, run this in your console:
ulx groupallow user "ulx voteban" "#user 1:60"
If you want them to be able to voteban anyone, switch out "#user" for "*".
-
Does this work the same if I put it in the groups.txt file?
-
No. No it does not. We generally shy away from instructing users to edit the data files by hand... too easy to screw them up.
-
This works gloriously but is there a way to prevent having to do !voteban user 60, Can I set the default to 60?
-
this would requre a small edit in the utility.lua file in the add-on and add a arg setting to the ban time for the ban command
ps: this is for people who know what they are doing editing ulx files can result in breaking or errors
,default = 60