mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +01:00
these javadocs are straight up wrong
This commit is contained in:
parent
3cb63202a3
commit
8e17090cc7
@ -249,13 +249,6 @@ public final class CommandUtils {
|
|||||||
return onlinePlayerNames;
|
return onlinePlayerNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a matched player name if one was found in the database.
|
|
||||||
*
|
|
||||||
* @param partialName Name to match
|
|
||||||
*
|
|
||||||
* @return Matched name or {@code partialName} if no match was found
|
|
||||||
*/
|
|
||||||
public static String getMatchedPlayerName(String partialName) {
|
public static String getMatchedPlayerName(String partialName) {
|
||||||
if (Config.getInstance().getMatchOfflinePlayers()) {
|
if (Config.getInstance().getMatchOfflinePlayers()) {
|
||||||
List<String> matches = matchPlayer(partialName);
|
List<String> matches = matchPlayer(partialName);
|
||||||
@ -275,15 +268,6 @@ public final class CommandUtils {
|
|||||||
return partialName;
|
return partialName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Attempts to match any player names 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 partialName Name to match
|
|
||||||
* @return List of all possible names
|
|
||||||
*/
|
|
||||||
private static List<String> matchPlayer(String partialName) {
|
private static List<String> matchPlayer(String partialName) {
|
||||||
List<String> matchedPlayers = new ArrayList<>();
|
List<String> matchedPlayers = new ArrayList<>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user