diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-04-11 23:03:37 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-04-11 23:03:37 -0500 |
commit | ac593849aec264019a7e327086ce303031668ecd (patch) | |
tree | 73643e54b0dfb607ee09a0f19b655c41f687c9c7 | |
parent | 77d1524b3d11f2580cf5792a79cd4c72385fdee9 (diff) | |
download | craftbukkit-ac593849aec264019a7e327086ce303031668ecd.tar craftbukkit-ac593849aec264019a7e327086ce303031668ecd.tar.gz craftbukkit-ac593849aec264019a7e327086ce303031668ecd.tar.lz craftbukkit-ac593849aec264019a7e327086ce303031668ecd.tar.xz craftbukkit-ac593849aec264019a7e327086ce303031668ecd.zip |
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
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java index 63b80853..72b02b07 100644 --- a/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java +++ b/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftScoreboard.java @@ -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()); } |