Skip to content

Commit

Permalink
rename server.get_player to server.match_player
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 26, 2013
1 parent cf0c7e1 commit f441d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/tags/core/UtilTags.java
Expand Up @@ -192,14 +192,14 @@ public void serverTags(ReplaceableTagEvent event) {
}

// <--[tag]
// @attribute <server.get_player[<name>]>
// @attribute <server.match_player[<name>]>
// @returns dPlayer
// @description
// Returns the online player that best matches the input name.
// (EG, in a group of 'bo', 'bob', and 'bobby'... input 'bob' returns p@bob,
// input 'bobb' returns p@bobby, and input 'b' returns p@bo.)
// -->
if (attribute.startsWith("get_player") && attribute.hasContext(1)) {
if (attribute.startsWith("match_player") && attribute.hasContext(1)) {
Player matchPlayer = null;
String matchInput = attribute.getContext(1).toLowerCase();
for (Player player: Bukkit.getOnlinePlayers()) {
Expand Down

0 comments on commit f441d19

Please sign in to comment.