public class HelpCommand extends BukkitCommand
description, timings, usageMessage
Constructor | Description |
---|---|
HelpCommand() |
Modifier and Type | Method | Description |
---|---|---|
protected static int |
damerauLevenshteinDistance(java.lang.String s1,
java.lang.String s2) |
Computes the Dameraur-Levenshtein Distance between two strings.
|
boolean |
execute(CommandSender sender,
java.lang.String currentAlias,
java.lang.String[] args) |
Executes the command, returning its success
|
protected HelpTopic |
findPossibleMatches(java.lang.String searchString) |
|
java.util.List<java.lang.String> |
tabComplete(CommandSender sender,
java.lang.String alias,
java.lang.String[] args) |
Executed on tab completion for this command, returning a list of
options the player can tab through.
|
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
public boolean execute(CommandSender sender, java.lang.String currentAlias, java.lang.String[] args)
Command
public java.util.List<java.lang.String> tabComplete(CommandSender sender, java.lang.String alias, java.lang.String[] args)
Command
tabComplete
in class Command
sender
- Source object which is executing this commandalias
- the alias being usedargs
- All arguments passed to the command, split via ' 'protected HelpTopic findPossibleMatches(java.lang.String searchString)
protected static int damerauLevenshteinDistance(java.lang.String s1, java.lang.String s2)
s1
- The first string being compared.s2
- The second string being compared.Copyright © 2018. All rights reserved.