Don't nuke command on tab complete if no args specified.
This commit is contained in:
@@ -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 ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user