Commits

Matt authored and md_5 committed d24844cdd9e
Add ability to add a string to a scoreboard instead of a player
No tags

src/main/java/org/bukkit/scoreboard/Scoreboard.java

Modified
96 96 * @throws IllegalArgumentException if entry is null
97 97 */
98 98 void resetScores(String entry) throws IllegalArgumentException;
99 99
100 100 /**
101 101 * Gets a player's Team on this Scoreboard
102 102 *
103 103 * @param player the player to search for
104 104 * @return the player's Team or null if the player is not on a team
105 105 * @throws IllegalArgumentException if player is null
106 + * @deprecated Scoreboards can contain entries that aren't players
107 + * @see #getEntryTeam(String)
106 108 */
109 + @Deprecated
107 110 Team getPlayerTeam(OfflinePlayer player) throws IllegalArgumentException;
108 111
112 + /**
113 + * Gets a entries Team on this Scoreboard
114 + *
115 + * @param entry the entry to search for
116 + * @return the entries Team or null if the entry is not on a team
117 + * @throws IllegalArgumentException if entry is null
118 + */
119 + Team getEntryTeam(String entry) throws IllegalArgumentException;
120 +
109 121 /**
110 122 * Gets a Team by name on this Scoreboard
111 123 *
112 124 * @param teamName Team name
113 125 * @return the matching Team or null if no matches
114 126 * @throws IllegalArgumentException if teamName is null
115 127 */
116 128 Team getTeam(String teamName) throws IllegalArgumentException;
117 129
118 130 /**

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut