From a26dc45546db20855e6c6d58113d7ed1b62dc00b Mon Sep 17 00:00:00 2001 From: Michael <28601081+clrxbl@users.noreply.github.com> Date: Sun, 28 Feb 2021 15:01:26 -0800 Subject: [PATCH] Print command usage for /paper entity list at more places (#5282) --- Spigot-Server-Patches/Paper-config-files.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Spigot-Server-Patches/Paper-config-files.patch b/Spigot-Server-Patches/Paper-config-files.patch index afef859a4..219c17287 100644 --- a/Spigot-Server-Patches/Paper-config-files.patch +++ b/Spigot-Server-Patches/Paper-config-files.patch @@ -164,6 +164,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + if (names.isEmpty()) { + sender.sendMessage(ChatColor.RED + "Invalid filter, does not match any entities. Use /paper entity list for a proper list"); ++ sender.sendMessage(ChatColor.RED + "Usage: /paper entity list [filter] [worldName]"); + return; + } + @@ -175,6 +176,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } else { + sender.sendMessage(ChatColor.RED + "Please specify the name of a world"); + sender.sendMessage(ChatColor.RED + "To do so without a filter, specify '*' as the filter"); ++ sender.sendMessage(ChatColor.RED + "Usage: /paper entity list [filter] [worldName]"); + return; + } + @@ -182,6 +184,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + World bukkitWorld = Bukkit.getWorld(worldName); + if (bukkitWorld == null) { + sender.sendMessage(ChatColor.RED + "Could not load world for " + worldName + ". Please select a valid world."); ++ sender.sendMessage(ChatColor.RED + "Usage: /paper entity list [filter] [worldName]"); + return; + } + WorldServer world = ((CraftWorld) Bukkit.getWorld(worldName)).getHandle();