Tabnine Logo
PluginCommand.getAliases
Code IndexAdd Tabnine to your IDE (free)

How to use
getAliases
method
in
org.bukkit.command.PluginCommand

Best Java code snippets using org.bukkit.command.PluginCommand.getAliases (Showing top 2 results out of 315)

origin: PyvesB/AdvancedAchievements

if (pluginCommand == null || pluginCommand.getAliases() == null) {
  return Arrays.asList(commandName.toLowerCase() + commandParameters);
List<String> equivalentCommands = new ArrayList<>(pluginCommand.getAliases().size() + 1);
for (String alias : pluginCommand.getAliases()) {
  equivalentCommands.add(alias.toLowerCase() + commandParameters);
origin: seeseemelk/MockBukkit

/**
 * Checks if the label given is a possible label of the command.
 * 
 * @param command The command to check against.
 * @param label The label that should be checked if it's a label for the
 *            command.
 * @return {@code true} if the label is a label of the command, {@code false} if
 *         it's not.
 */
private boolean isLabelOfCommand(PluginCommand command, String label)
{
  assertMainThread();
  if (label.equals(command.getName()))
  {
    return true;
  }
  for (String alias : command.getAliases())
  {
    if (label.equals(alias))
    {
      return true;
    }
  }
  return false;
}

org.bukkit.commandPluginCommandgetAliases

Popular methods of PluginCommand

  • setExecutor
  • setTabCompleter
  • getPlugin
    Gets the owner of this PluginCommand
  • getExecutor
  • getName
  • setDescription
  • setPermission
  • setUsage
  • setAliases
  • <init>
  • setPermissionMessage
  • testPermission
  • setPermissionMessage,
  • testPermission,
  • unregister,
  • getTabCompleter,
  • getUsage,
  • setLabel

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • JList (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now