mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#1041: Improve getPlayer(String) docs to clarify it matches the name
This commit is contained in:
parent
9738f00514
commit
e86f4dc4bb
2 changed files with 8 additions and 2 deletions
|
@ -633,7 +633,10 @@ public final class Bukkit {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets a player object by the given username.
|
||||
* Gets a player whose name matches the given name closest.
|
||||
* <p>
|
||||
* Use {@link #getPlayerExact(String)} to get the player matching the input exactly
|
||||
* and {@link #matchPlayer(String)} if you want a list of all players matching the input.
|
||||
* <p>
|
||||
* This method may not return objects for offline players.
|
||||
*
|
||||
|
|
|
@ -544,7 +544,10 @@ public interface Server extends PluginMessageRecipient {
|
|||
public int getTicksPerSpawns(@NotNull SpawnCategory spawnCategory);
|
||||
|
||||
/**
|
||||
* Gets a player object by the given username.
|
||||
* Gets a player whose name matches the given name closest.
|
||||
* <p>
|
||||
* Use {@link #getPlayerExact(String)} to get the player matching the input exactly
|
||||
* and {@link #matchPlayer(String)} if you want a list of all players matching the input.
|
||||
* <p>
|
||||
* This method may not return objects for offline players.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue