summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/Server.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index dd29eba3..f3556922 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -1,6 +1,7 @@
package org.bukkit;
+import java.util.List;
import org.bukkit.plugin.PluginManager;
/**
@@ -39,6 +40,18 @@ public interface Server {
public Player getPlayer(String name);
/**
+ * Attempts to match any players with the given name, and returns a list
+ * of all possibly matches
+ *
+ * This list is not sorted in any particular order. If an exact match is found,
+ * the returned list will only contain a single result.
+ *
+ * @param name Name to match
+ * @return List of all possible players
+ */
+ public List<Player> matchPlayer(String name);
+
+ /**
* Gets the PluginManager for interfacing with plugins
*
* @return PluginManager for this Server instance