Documented + added server.matchPlayer
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6f77375dc5
commit
88076b8a29
1 changed files with 13 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
|
||||
package org.bukkit;
|
||||
|
||||
import java.util.List;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
|
||||
/**
|
||||
|
@ -38,6 +39,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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue