Codota Logo
PluginCommand.getAliases
Code IndexAdd Codota 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)

  • Common ways to obtain PluginCommand
private void myMethod () {
PluginCommand p =
  • Codota IconString name;Bukkit.getPluginCommand(name)
  • Codota IconConstructor function Object() { [native code] };Object[] initargs;function Object() { [native code] }.newInstance(initargs, plugin)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now