mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-06 10:49:40 +01:00
Invert command complete check
This commit is contained in:
parent
4978db4332
commit
fe00a77ac8
@ -1,11 +1,11 @@
|
||||
From 9257663bcbcb86a961a7560ae825893adef4f025 Mon Sep 17 00:00:00 2001
|
||||
From 13be8ff0ff998aff7a3e9d2502ae61cd82e7a8b1 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Fri, 21 Jun 2013 18:05:54 +1000
|
||||
Subject: [PATCH] Allow Disabling of Command TabComplete
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||||
index 11f018b..c71ce7c 100644
|
||||
index 11f018b..04939af 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||||
@@ -1396,6 +1396,13 @@ public final class CraftServer implements Server {
|
||||
@ -13,7 +13,7 @@ index 11f018b..c71ce7c 100644
|
||||
|
||||
public List<String> tabCompleteCommand(Player player, String message) {
|
||||
+ // Spigot Start
|
||||
+ if ( org.spigotmc.SpigotConfig.tabComplete )
|
||||
+ if ( !org.spigotmc.SpigotConfig.tabComplete )
|
||||
+ {
|
||||
+ return ImmutableList.of();
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user