#Admin.RunCommandAsPlayer not working in plugin??

1 messages · Page 1 of 1 (latest)

summer glacier
#

the jumpscare works fine as it should, but the player doesnt get banned for some reason. no errors or warnings in output

#

someone please tell me what im doing wrong 🙏

summer glacier
#

@cursive bloom

cursive bloom
#

It should be working

summer glacier
#

alright 2 sec

cursive bloom
#

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

summer glacier
#

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

cursive bloom
cursive bloom
summer glacier
#

yes

cursive bloom
#

Sorry

#

Was walking

summer glacier
#

wait

cursive bloom
#

Let me check something rq

summer glacier
#

i wrote .RunCommand not .RunCommandAsPlayer

#

let me check if that was it

cursive bloom
summer glacier
#

yeah that wasnt it

#

just double checked

cursive bloom
#

And show me the tasks

summer glacier
#

i dont have that command

#

theres :tasks

#

:pban Player3 works fine

#

if thats relevant

cursive bloom
summer glacier
#

after running :jumpscareban multiple times

cursive bloom
#

Using RunAsPlayer

summer glacier
#

nothing happens

cursive bloom
summer glacier
#

the warn thing still prints but no one gets jailed

#

like this @cursive bloom ?

cursive bloom
#

Mhm

summer glacier
#

still nothing

#

warn still prints

cursive bloom
summer glacier
cursive bloom
#

Well I think I know the problem now

summer glacier
#

what is it?

cursive bloom
#

Wrap it in a warn btw

#

I believe it's with the GetCommand function not finding a command

summer glacier
#

returns blank

cursive bloom
#

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

summer glacier
#

the command is anyways just QOL for mods banning exploiters

#

since you can just run :jumpscare right after :pban

cursive bloom
#

Just call the function manually server.Commands.PermanentBan.Function(plr, ArgsHere)

summer glacier
#

2 sec

#

yes works as it should

#

thanks for the help