From efef1d30a2fe0822fdbb13b1d546555704affb98 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Apr 2014 14:33:47 +1000 Subject: [PATCH] Disable BanList Command Does not currently work correctly. --- .../0026-Disable-BanList-Command.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Bukkit-Patches/0026-Disable-BanList-Command.patch diff --git a/Bukkit-Patches/0026-Disable-BanList-Command.patch b/Bukkit-Patches/0026-Disable-BanList-Command.patch new file mode 100644 index 0000000000..8a08b30151 --- /dev/null +++ b/Bukkit-Patches/0026-Disable-BanList-Command.patch @@ -0,0 +1,27 @@ +From c76ad11c42cb3320ff61ecdd5d4934ea801b249d Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Thu, 17 Apr 2014 14:33:40 +1000 +Subject: [PATCH] Disable BanList Command + +Does not currently work correctly. + +diff --git a/src/main/java/org/bukkit/command/defaults/BanListCommand.java b/src/main/java/org/bukkit/command/defaults/BanListCommand.java +index 5f3a6f2..331083f 100644 +--- a/src/main/java/org/bukkit/command/defaults/BanListCommand.java ++++ b/src/main/java/org/bukkit/command/defaults/BanListCommand.java +@@ -28,6 +28,12 @@ public class BanListCommand extends VanillaCommand { + @Override + public boolean execute(CommandSender sender, String currentAlias, String[] args) { + if (!testPermission(sender)) return true; ++ // Spigot start ++ if ( true ) ++ { ++ sender.sendMessage( ChatColor.RED + "This command is currently disabled as it does not work correctly." ); ++ } ++ // Spigot end + + BanList.Type banType = BanList.Type.UUID; + if (args.length > 0) { +-- +1.8.3.2 +