Skip to content

Commit 049816f

Browse files
committed
Fixed the tab completer working twice when there is no completer associated with the command
1 parent 6439dfa commit 049816f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/me/despical/commandframework/CommandRegistry.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ protected void registerCommand(Command command, Method method, Object instance)
185185
constructor.setAccessible(true);
186186

187187
PluginCommand pluginCommand = constructor.newInstance(cmdName, commandFramework.plugin);
188-
pluginCommand.setTabCompleter(commandFramework);
189188
pluginCommand.setExecutor(commandFramework);
190189
pluginCommand.setUsage(command.usage());
191190
pluginCommand.setPermission(command.permission().isEmpty() ? null : command.permission());

0 commit comments

Comments
 (0)