#how to check if player sends command, after that is a number

1 messages · Page 1 of 1 (latest)

wind blade
#

how do i make it so if a player sends a command like /test and they put a number after that it does something, ive tried this

 if input is an integer:
  send "worked" to player```


does anybody know?
plucky ruin
#

if arg-1 is an integer:

wind blade
plucky ruin
#
  if command is "command"```
#

iirc

wind blade
#

i want the actual command to be useable, but if a player puts an integer after it it sends something else

plucky ruin
#

check for the first argument

wind blade
#

ohh wait

#

no it doesnt allow u cuz its not an actual command its just checking if ur sending the command

plucky ruin
#

why not just put this into the command?

#

why are you using a seperate event?

wind blade
#

because its a command from another plugin

gaunt garden
#

just do:

#

then they can only get an integer or will get an erorr msg

glad laurel
#

< > means they need the argument, if you add [ ] it means it's not required