Make our commands support tab-complete.

This commit is contained in:
GJ
2013-03-28 12:57:49 -04:00
parent f3c6346b95
commit b391a53c6b
28 changed files with 596 additions and 238 deletions

View File

@ -1,5 +1,7 @@
package com.gmail.nossr50.util.commands;
import java.util.List;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -13,7 +15,12 @@ import com.gmail.nossr50.util.StringUtils;
import com.gmail.nossr50.util.player.UserManager;
import com.gmail.nossr50.util.skills.SkillUtils;
import com.google.common.collect.ImmutableList;
public final class CommandUtils {
public static final List<String> TRUE_FALSE_OPTIONS = ImmutableList.of("on", "off", "true", "false", "enabled", "disabled");
public static final List<String> RESET_OPTIONS = ImmutableList.of("clear", "reset");
private CommandUtils() {}
public static boolean isChildSkill(CommandSender sender, SkillType skill) {