Stupid question about the TabCompleteCommandEvent
:
Is it possible for me to detect, if the player already typed a space between command and arguments or not?
I mean if:
the player typed '/tell'
and pressed Tab or if
the player typed '/tell '
and pressed Tab.
That would be important because it changes the tab-completion target.
But as far as i know you can only do evt.getCommand()
to get a space-trimmed command or evt.getArguments()
what gives you the arguments-string but without a leading space.