mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 18:31:24 +01:00
Javadoc corrections.
This commit is contained in:
parent
c00347c894
commit
d5632035b4
@ -132,7 +132,7 @@ public class CommandUtil {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience method to map all matches within one of the String[] arrays
|
* Convenience method to map all matches within one of the String[] arrays
|
||||||
* to its first element.<br>
|
* to its first element.<br>
|
||||||
@ -158,9 +158,10 @@ public class CommandUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear tree and feed lower case. Adds versions with "/" if missing, also adds input without the first "/". No trimming is used, except left-trim.
|
* Feed lower-case inputs. Adds versions with "/" if missing, also adds input without the first "/". Trimming from the left side is used, but the original input is also added.
|
||||||
* @param tree
|
* @param tree
|
||||||
* @param inputs
|
* @param inputs
|
||||||
|
* @param clear If to clear the tree, before feeding.
|
||||||
*/
|
*/
|
||||||
public static void feedCommands(SimpleCharPrefixTree tree, Collection<String> inputs, boolean clear) {
|
public static void feedCommands(SimpleCharPrefixTree tree, Collection<String> inputs, boolean clear) {
|
||||||
if (clear) {
|
if (clear) {
|
||||||
@ -199,7 +200,7 @@ public class CommandUtil {
|
|||||||
* @param tree
|
* @param tree
|
||||||
* @param config
|
* @param config
|
||||||
* @param configPath
|
* @param configPath
|
||||||
* @param clear If to clear the map before inserting anything.
|
* @param clear If to clear the tree before inserting anything.
|
||||||
*/
|
*/
|
||||||
public static void feedCommands(SimpleCharPrefixTree tree, ConfigFile config, String configPath, boolean clear) {
|
public static void feedCommands(SimpleCharPrefixTree tree, ConfigFile config, String configPath, boolean clear) {
|
||||||
final List<String> prefixes = config.getStringList(configPath);
|
final List<String> prefixes = config.getStringList(configPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user