28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
|
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
|
||
|
|