Adonis Custom Command (minus the prefix)

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
1 Like

I think that only falls in actually admin script, Since plugins are pretty much a add on.

So in that case you have to change the prefix in the script it’s slef on line.

unless you made it without requesting settings of the script.

image