Hello!
I am trying to make a Adonis custom command, but I would like it to not use a prefix. The command is currently :clr [player] and I want it to just be clr [player]. It works with the prefix, but my attempts to remove the prefix have failed. Current code:
server = nil
service = nil
return function()
server.Commands.clr = {
Prefix = server.Settings.Prefix;
Commands = {"clr"};
Args = {"player"};
Description = "Clears a certain player for complex access.";
Hidden = false;
Fun = false;
AdminLevel = "Admins";
Function = function(plr,args)
for i,v in pairs(service.GetPlayers(plr,args[1])) do
if v.Character.Head.Tag then
v.Character.Head.Tag.Frame.Cleared.Visible = true
end
end
end
}
end