#[SOLVED] (Linux) Plugin: requireTarget on console

1 messages · Page 1 of 1 (latest)

tardy flicker
#

If I type a command that has "requireTarget" set to on inside the console, it outputs an error saying that it can't find the target (of course). Is there a way to send a command on the console but specifying the target by yourself? Or maybe better: is there a way to send a command as a player (so it has the target, even if this can cause permissions issues tho...)

Is there a way to achieve this goal? (The reason behind this, is because of the chat length is... Limited)

tardy flicker
#

Alright basically I am an idiot. I now checked the source code just for my dumb brain to realize that the CommandArgs class does that automatically.

For example if I go with my client and send /mail Hi! it works, but for the console I need to do /mail @<UID> Hi! and it'll give the same result. I should've known this sooner. Thanks anyways