Disable BanList Command

Does not currently work correctly.

By: md_5 <git@md-5.net>
This commit is contained in:
Spigot 2014-04-17 14:33:47 +10:00
parent 5e0dbddc90
commit 1d3e9c4268

View file

@ -0,0 +1,27 @@
From c76ad11c42cb3320ff61ecdd5d4934ea801b249d Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
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