#Command args not being recognized correctly

1 messages · Page 1 of 1 (latest)

echo totem
summer cloud
#

check if arg-3 is set

echo totem
#

i am getting the else message for if arg-1 is an offline player

#

and when i remove it

#

i get the else message for if arg-3 is set

#

so didnt work

summer cloud
#

when you check if arg-2 is set

#

check if arg-3 is set after

echo totem
#

yes

#

it is

summer cloud
#

I don't see it

echo totem
#
        if arg-1 is set:
            if arg-1 is an offlineplayer:
                if arg-2 is set:
                    if arg-3 is set:
summer cloud
#

hm

#

why are you checking if arg-1 has perms?

#

player is the executor

echo totem
#

so that players with the lower ranks cant ban admins

summer cloud
#

I'm confused so members can use it?

echo totem
#

no but lower team members cant ban higher ones

summer cloud
#

I see

echo totem
#

only "inhaber" and "serverleitung" are permitted to ban any staff members

summer cloud
#

alr, but why checking if the arg-1 is offlineplayer? xd

#

the first arg is offlineplayer

echo totem
#

so you cant enter anything different

#

ig so

#

ima remove it

summer cloud
#

if you check if arg-3 is set it should work

echo totem
#

getting else message for if arg-3 is set

summer cloud
#

that's weird

#

basically it

#

bruh

#

BASICALLY arg-3 is not set

#

when you added the condition did you indent?

echo totem
#

like that im gettin "d" in return to

summer cloud
#

is it sending d?

#

o

echo totem
#

yes

#

i thought i could puit the text after the time but that kind of destroys that if the time is not set you get a permaban

summer cloud
#

I think it's timespan

#

not time

echo totem
#

ima try

summer cloud
#

yea try idk if I'm wrong

echo totem
#

looking good

#

ima join and see

summer cloud
#

k

echo totem
#

it works when i ban myself ingame but not from console but i think the error is fixed

#

thx

summer cloud
#

you need to check if the executor is console