Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 19:40:07 +01:00
Disable BanList Command
Does not currently work correctly.
Dieser Commit ist enthalten in:
Ursprung
1d37fe9bbe
Commit
efef1d30a2
27
Bukkit-Patches/0026-Disable-BanList-Command.patch
Normale Datei
27
Bukkit-Patches/0026-Disable-BanList-Command.patch
Normale Datei
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren