Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: ozzyos2009 on December 03, 2016, 04:19:42 PM
-
My ULib/ULX versions (run "ulx version" in console):
ULib v2.60
ULX v3.70
Game mode(s) I am having this problem on: TTT
I simply wanted to know if there was a way to make ulx ban/banid to display "Hours,Days" etc instead of minutes when banning.
-
It already does log and echo in that format. Can you take a screenshot of what you're talking about?
-
Hint from ban command
0 for perma. 'h' for hours, 'd' for days, 'w' for weeks. EG, '2w5d' for 2 weeks 5 days"
-
Hint from ban command
Oh, I probably should've looked in util.lua/looked at the hint first. My bad. Thank you though :)
Edit: That isn't there for me. Thank you for the find!
-
Apologies.
You're right. (And I wouldn't expect everyone to have had to browse our code to see that)
I found the line searching our forums, and found an old post that had our code in it.
The hint for it is no longer there. That code will (is supposed to) take time input in that manner though, and the fancylog call will display it that way.
https://github.com/TeamUlysses/ulx/blob/b7adea4fed9d3b582dabc3db5d198cbda899b2a7/lua/ulx/modules/sh/util.lua#L91
I can only presume we removed the long hint because of it's length.
Perhaps we could put it in the help line.