mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Consider first player name in leave command. Fixes BUKKIT-4051
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
e5dec4f10e
commit
740df1695d
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ public class ScoreboardCommand extends VanillaCommand {
|
||||||
noTeam.add(sender.getName());
|
noTeam.add(sender.getName());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int i = 3; i < args.length; i++) {
|
for (int i = 2; i < args.length; i++) {
|
||||||
String playerName = args[i];
|
String playerName = args[i];
|
||||||
OfflinePlayer offlinePlayer;
|
OfflinePlayer offlinePlayer;
|
||||||
Player player = Bukkit.getPlayerExact(playerName);
|
Player player = Bukkit.getPlayerExact(playerName);
|
||||||
|
|
Loading…
Reference in a new issue