From 740df1695d70b3b811480ebdde87342ec7e13831 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 11 Apr 2013 22:56:31 -0500 Subject: [PATCH] Consider first player name in leave command. Fixes BUKKIT-4051 By: Wesley Wolfe --- .../java/org/bukkit/command/defaults/ScoreboardCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java index 0b2755a2c4..687af3d1cb 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java @@ -400,7 +400,7 @@ public class ScoreboardCommand extends VanillaCommand { noTeam.add(sender.getName()); } } else { - for (int i = 3; i < args.length; i++) { + for (int i = 2; i < args.length; i++) { String playerName = args[i]; OfflinePlayer offlinePlayer; Player player = Bukkit.getPlayerExact(playerName);