mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Documented + added server.matchPlayer
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6f77375dc5
commit
88076b8a29
@ -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…
Reference in New Issue
Block a user