#[MyCommand] Command not registering through Console

1 messages · Page 1 of 1 (latest)

oblique mango
#

Hello

stiff nimbus
#

@oblique mango send the command thats not registering

oblique mango
#
#/broadcastkey (run times) (username) (key type)
runtimes_keys:
  command: /broadcastkey
  type: RUN_CONSOLE
  runcmd:
  - '%Repeat%$arg1%$arg3keytext $arg2'
  registered: true
  permission-required: true
  cost: 0
  delaytimer: 1
  delaytimer_format: TICKS
#

Using MyCommand Plugin

#

[MyCommand] Command not registering through Console

stiff nimbus
#

Does anyone know how to fix this?

#

It runs from ingame but not from console

#

and its set to registered: true

stiff nimbus
#

Anyone know?

jade gorge
#

any errors?

#

hmm, I wonder if it's weirdly related to anything you have on there

#

try removing the cost, since it's 0 anyway

#

if that works and you WANT a cost you might have to duplicate the command and remove the cost, make it execute_mode: CONSOLE_ONLY

stiff nimbus
#

but i removed it and it doesnt seem to have done anything

#

still just says unknown command

#

execute_mode: CONSOLE_ONLY

also didnt make it work

jade gorge
#

Oh wow

#

What are you typing exactly

stiff nimbus
# jade gorge What are you typing exactly

So the way it works is that i have several other commands for each key

i run

/broadcastkey (amount) (username) (keytype)

(amount) - replaces $arg1 and makes the command run many times
(username) - replaces $arg2 inserting it into the other commands that have the text
(key type) - $arg3 puts it in the command, so i have commands like

/divinekeytext

but in this current command the word "divine" is replaced with $arg3 making it so i can run it on any key

#

It works perfectly fine when i run it from ingame but when console runs the command it says unknown command

jade gorge
#

Hmm, are your other commands registered? (/divinekeytext)

stiff nimbus
#

And those commands work from console

#

on their own

jade gorge
stiff nimbus
#

Is it a bug in mycommand then?

#

any other way we can make this command

#

Its needed so we can run the broadcasts multiple times

jade gorge
#

if you remove the repeat does it work

vital scaffold
#

server restart is needed to register commands properly

#

oh wait

stiff nimbus
vital scaffold
#

it doesnt work at all

#

sorry didnt read whole chat

stiff nimbus
#

no worries, got any ideas?

vital scaffold
#

you don't use slash in console, right?

stiff nimbus
vital scaffold
stiff nimbus
#

I dont use a slash