#Admin.RunCommandAsPlayer not working in plugin??
1 messages · Page 1 of 1 (latest)
@cursive bloom
Send a video of you trying this and showing the output if you could
It should be working
alright 2 sec
Also, why do you have every custom command in their own plugin, you can set multiple commands
#🧷community-faq message
I recommend using this template in plugins
And use the wiki
you can do that??
2 sec i need to compress it because of file limit
sorry if text is unreadable its like 480p
heres it with the jumpscare portion removed. the ban just doesnt happen @cursive bloom
Yeah? It's like a normal script just with the Adonis ENV
Can you add warn(true) so I can make sure it actually runs the function
wait
Let me check something rq
You had it up here and it didn't work
Do :taskmgr right after running please
And show me the tasks
:taskmgr?
i dont have that command
theres :tasks
:pban Player3 works fine
if thats relevant
This was done after you ran the Command?
yes
after running :jumpscareban multiple times
Try running the jail command
Using RunAsPlayer
nothing happens
Change args to include "me" only
Mhm
Try doing "Jail" with a capital J
still nothing
Well I think I know the problem now
what is it?
Do Admin.GetCommand("Jail")
Wrap it in a warn btw
I believe it's with the GetCommand function not finding a command
There's the issue
Great, now I have to find out why
There's isn't a fix you can make right now unfortunately. I'll find a fix and make a PR
yeah its fine
the command is anyways just QOL for mods banning exploiters
since you can just run :jumpscare right after :pban
I got a fix actually I'm stupid
Just call the function manually server.Commands.PermanentBan.Function(plr, ArgsHere)
@summer glacier this work?