Consider first player name in leave command. Fixes BUKKIT-4051

This commit is contained in:
Wesley Wolfe
2013-04-11 22:56:31 -05:00
parent be1429665d
commit 18c46487ad

View File

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