#[MyCommand] Command not registering through Console
1 messages · Page 1 of 1 (latest)
@oblique mango send the command thats not registering
#/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
Does anyone know how to fix this?
It runs from ingame but not from console
and its set to registered: true
Anyone know?
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
Cost isnt needed, but i dont think 0 does anything
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
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
Hmm, are your other commands registered? (/divinekeytext)
Yes all of them are registered
And those commands work from console
on their own

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
if you remove the repeat does it work
have you restarted server?
server restart is needed to register commands properly
oh wait
Yes it has a few times
no worries, got any ideas?
wait
you don't use slash in console, right?
no
no like you dont?
I dont use a slash