3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 11:30:06 +01:00

Disable BanList Command

Does not currently work correctly.
Dieser Commit ist enthalten in:
md_5 2014-04-17 14:33:47 +10:00
Ursprung 1d37fe9bbe
Commit efef1d30a2

Datei anzeigen

@ -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