Don't nuke command on tab complete if no args specified.
This commit is contained in:
parent
a5f2b423d4
commit
52b75cd18b
@ -160,7 +160,7 @@ public class PluginManager
|
|||||||
if ( tabResults == null )
|
if ( tabResults == null )
|
||||||
{
|
{
|
||||||
command.execute( sender, args );
|
command.execute( sender, args );
|
||||||
} else if ( command instanceof TabExecutor )
|
} else if ( commandLine.contains( " " ) && command instanceof TabExecutor )
|
||||||
{
|
{
|
||||||
for ( String s : ( (TabExecutor) command ).onTabComplete( sender, args ) )
|
for ( String s : ( (TabExecutor) command ).onTabComplete( sender, args ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user