So for one of my addons for ULX I'm making, the commands aren't showing under the proper category. In fact, they're not showing up under any category except for _Uncategorized Cmds (only found in the Groups tab). My question is, why is this happening?
An example of one of my commands:
function ulx.ChangePinID( calling_ply, sid, newPin, rank )
TFA_PinRefresh()
if ULib.isValidSteamID( sid ) then
if not GetPin[ sid ] then
ULib.tsayError( calling_ply, "This Steam ID does not have a PIN, please use \"ulx addpinid\" to add a PIN." )
else
local entry = { Pin = newPin, Rank = rank }
TFA_PinRefresh()
GetPin[ sid ] = entry
file.Write( dir .. settings, util.TableToJSON( GetPin ) )
local sFormat = sid
local Check = ULib.getPlyByID( sid )
if Check then
sFormat = Check:Nick() .. " (" .. sid .. ")"
ulx.fancyLog( { target_ply }, "Your PIN was changed by #P to #s", calling_ply, newPin, true )
end
ulx.fancyLog( { calling_ply }, "You changed the PIN of #s to #s with a rank of #s", sFormat, newPin, rank, true )
end
else
ULib.tsayError( calling_ply, "This is an invalid Steam ID." )
end
TFA_PinRefresh()
end
local changepinid = ulx.command( "TFA", "ulx changepinid", ulx.ChangePinID, "!changepinid", true )
changepinid:addParam{ type=ULib.cmds.StringArg, hint="Steam ID to change." }
changepinid:addParam{ type=ULib.cmds.StringArg, hint="New PIN." }
changepinid:addParam{ type=ULib.cmds.StringArg, completes=ulx.group_names_no_user, hint="Rank", error="Invalid group\"%s\" specified", ULib.cmds.restrictToCompletes }
changepinid:defaultAccess( ULib.ACCESS_SUPERADMIN )
changepinid:help( "Changes the PIN of a Steam ID." )
As you can see, I have
local changepinid = ulx.command( "TFA", "ulx changepinid", ulx.ChangePinID, "!changepinid", true )
so it should show under the "TFA" category, correct? Why is this not happening?
I've tried removing misc_registered.txt and changing maps (then doing that and restarting the server) but they still show under _Uncategorized Cmds.
They even show up under the correct Category in 'ulx help'
Category: TFA
o ulx addpin <player> <PIN to set> - Adds a user's authentication PIN. (say: !addpin)
o ulx addpinid <Steam ID of player> <PIN> <Rank> - Adds a PIN to a Steam ID with a specified rank. (say: !addpinid)
o ulx authenticate - Gives you the option to re-authenticate your PIN. (say: !auth)
o ulx changepin <player> <New PIN.> - Changes the PIN of a targeted player. (say: !changepin)
o ulx changepinid <Steam ID to change.> <New PIN.> <Rank> - Changes the PIN of a Steam ID. (say: !changepinid)
o ulx removepin <player> - Removes someone's PIN. (say: !removepin)
o ulx removepinid <Steam ID of player> - Removes the PIN of a Steam ID. (say: !removepinid)