[Bleeding] Update Tell and Help aliases to use alias system.
This commit is contained in:
committed by
Travis Watkins
parent
c9581cec84
commit
d45788bbf9
@@ -1,6 +1,7 @@
|
||||
package org.bukkit.command.defaults;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -28,6 +29,7 @@ public class HelpCommand extends VanillaCommand {
|
||||
super("help");
|
||||
this.description = "Shows the help menu";
|
||||
this.usageMessage = "/help <pageNumber>\n/help <topic>\n/help <topic> <pageNumber>";
|
||||
this.setAliases(Arrays.asList(new String[] { "?" }));
|
||||
this.setPermission("bukkit.command.help");
|
||||
}
|
||||
|
||||
@@ -109,11 +111,6 @@ public class HelpCommand extends VanillaCommand {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean matches(String input) {
|
||||
return input.equalsIgnoreCase("help") || input.equalsIgnoreCase("?");
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
|
||||
Validate.notNull(sender, "Sender cannot be null");
|
||||
|
||||
Reference in New Issue
Block a user