From 52b75cd18bd64b87bd561258a242d9d758df9e12 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jan 2015 11:07:43 +1100 Subject: [PATCH] Don't nuke command on tab complete if no args specified. --- api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 4284402b..60e35e1b 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -160,7 +160,7 @@ public class PluginManager if ( tabResults == null ) { command.execute( sender, args ); - } else if ( command instanceof TabExecutor ) + } else if ( commandLine.contains( " " ) && command instanceof TabExecutor ) { for ( String s : ( (TabExecutor) command ).onTabComplete( sender, args ) ) {