13
0
geforkt von Mirrors/Paper

Use correct method for getting player's team. Fixes BUKKIT-4050

The method getTeam gets the team from name of, as opposed to getting the
team a player belongs to.

This also addresses BUKKIT-4002 and partially BUKKIT-4044

By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2013-04-11 23:03:37 -05:00
Ursprung 868456b95f
Commit 1ec94b52c1

Datei anzeigen

@ -93,7 +93,7 @@ public final class CraftScoreboard implements org.bukkit.scoreboard.Scoreboard {
public Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException {
Validate.notNull(player, "OfflinePlayer cannot be null");
ScoreboardTeam team = board.getTeam(player.getName());
ScoreboardTeam team = board.getPlayerTeam(player.getName());
return team == null ? null : teams.get(team.getName());
}