General > Developers Corner
Being locked out of the server after being vote kicked
JamminR:
--- Quote from: Bite That Apple on November 04, 2015, 10:39:13 PM ---Wait, you can voteban with time duration, omg.
--- End quote ---
Yes, if no time/no integer given after target, defaults to 1440 minutes.
--- Code: ---local voteban = ulx.command( CATEGORY_NAME, "ulx voteban", ulx.voteban, "!voteban" )
voteban:addParam{ type=ULib.cmds.PlayerArg }
voteban:addParam{ type=ULib.cmds.NumArg, min=0, default=1440, hint="minutes", ULib.cmds.allowTimeString, ULib.cmds.optional }
voteban:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
voteban:defaultAccess( ULib.ACCESS_ADMIN )
voteban:help( "Starts a public ban vote against target." )
--- End code ---
Bite That Apple:
--- Quote from: JamminR on November 05, 2015, 07:02:26 PM ---Yes, if no time/no integer given after target, defaults to 1440 minutes.
--- Code: ---local voteban = ulx.command( CATEGORY_NAME, "ulx voteban", ulx.voteban, "!voteban" )
voteban:addParam{ type=ULib.cmds.PlayerArg }
voteban:addParam{ type=ULib.cmds.NumArg, min=0, default=1440, hint="minutes", ULib.cmds.allowTimeString, ULib.cmds.optional }
voteban:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.optional, ULib.cmds.takeRestOfLine, completes=ulx.common_kick_reasons }
voteban:defaultAccess( ULib.ACCESS_ADMIN )
voteban:help( "Starts a public ban vote against target." )
--- End code ---
--- End quote ---
Oh my jesus baby, god. I've always disabled it because of that, now that I know there is a time, I'm assuming that you can restrict certain amounts of time, just like !armor and it's limit.
JamminR:
Hehe, Apple, may I suggest trying "ulx help" from our non-edited your-self-mutilated version of ULX?
The voteban command help text specifically says that :)
o ulx voteban <player> [<minutes: 0<=x, default 1440>] [{reason}] - Starts a public ban vote against target. (say: !voteban)
Navigation
[0] Message Index
[*] Previous page
Go to full version