3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

Invert command complete check

Dieser Commit ist enthalten in:
md_5 2013-12-18 17:24:24 +11:00
Ursprung 4978db4332
Commit fe00a77ac8

Datei anzeigen

@ -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();
+ }