From 52bcbe231e651461c526721f7f00bac4a25c709d Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sat, 19 Aug 2023 20:06:49 +0200 Subject: [PATCH] Made worldedit tab complete only visible when enabled --- .../sbdevelopment/v10lift/commands/V10LiftTabCompleter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tech/sbdevelopment/v10lift/commands/V10LiftTabCompleter.java b/src/main/java/tech/sbdevelopment/v10lift/commands/V10LiftTabCompleter.java index ce22a69..361e0ed 100644 --- a/src/main/java/tech/sbdevelopment/v10lift/commands/V10LiftTabCompleter.java +++ b/src/main/java/tech/sbdevelopment/v10lift/commands/V10LiftTabCompleter.java @@ -76,7 +76,7 @@ public class V10LiftTabCompleter implements TabCompleter { return StringUtil.copyPartialMatches(args[2], playerOrGroupNames, new ArrayList<>()); } else if (args[0].equalsIgnoreCase("setoffline")) { return StringUtil.copyPartialMatches(args[2], BOOL, new ArrayList<>()); - } else if (args[0].equalsIgnoreCase("build")) { + } else if (args[0].equalsIgnoreCase("build") && V10LiftPlugin.isWorldEditEnabled()) { return StringUtil.copyPartialMatches(args[2], List.of("worldedit"), new ArrayList<>()); } } else if (args.length == 4) {