From c9d2a7fddc2a219dcaa1bf81f8967d63fcbfaf5e Mon Sep 17 00:00:00 2001 From: jojo Date: Tue, 17 Nov 2020 16:35:32 +0100 Subject: [PATCH] Fix TabCompleteException --- .../bausystem/commands/worldedit/WECommandFlopyp.java | 6 +----- .../bausystem/commands/worldedit/WECommandPaste.java | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandFlopyp.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandFlopyp.java index fa614ed..fbe190b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandFlopyp.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandFlopyp.java @@ -29,11 +29,7 @@ import java.util.List; public class WECommandFlopyp extends WECommand { public List onTabComplete(CommandSender sender, Command command, String s, String[] args) { - List tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"); - if (args.length == 0) { - return tabCompletes; - } - return manageList(tabCompletes, args, args.length - 1); + return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"); } @Override diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandPaste.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandPaste.java index 90f0e0a..0d03519 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandPaste.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/worldedit/WECommandPaste.java @@ -29,11 +29,7 @@ import java.util.List; public class WECommandPaste extends WECommand { public List onTabComplete(CommandSender sender, Command command, String s, String[] args) { - List tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"); - if (args.length == 0) { - return tabCompletes; - } - return manageList(tabCompletes, args, args.length - 1); + return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m"); } @Override