congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PluginCommand.setAliases
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: seeseemelk/MockBukkit

  List<String> aliases = new ArrayList<>();
  if (value instanceof List<?>)
    command.setAliases(
        ((List<?>) aliases).stream().map(object -> object.toString()).collect(Collectors.toList()));
  else
    command.setAliases(Arrays.asList(value.toString()));
  break;
case "permission":
origin: marcelo-mason/SimpleClans

public static void registerCommand(String... aliases) {
  if (aliases != null) {
    PluginCommand command = getCommand(aliases[0], SimpleClans.getInstance());
    if (command != null) {
      command.setAliases(Arrays.asList(aliases));
      getCommandMap().register(SimpleClans.getInstance().getDescription().getName(), command);
    }
  }
}
origin: mcMMO-Dev/mcMMO

private static void registerXprateCommand() {
  List<String> aliasList = new ArrayList<String>();
  aliasList.add("mcxprate");
  PluginCommand command = mcMMO.p.getCommand("xprate");
  command.setDescription(LocaleLoader.getString("Commands.Description.xprate"));
  command.setPermission("mcmmo.commands.xprate;mcmmo.commands.xprate.reset;mcmmo.commands.xprate.set");
  command.setPermissionMessage(permissionsMessage);
  command.setUsage(LocaleLoader.getString("Commands.Usage.2", "xprate", "<" + LocaleLoader.getString("Commands.Usage.Rate") + ">", "<true|false>"));
  command.setUsage(command.getUsage() + "\n" + LocaleLoader.getString("Commands.Usage.1", "xprate", "reset"));
  command.setAliases(aliasList);
  command.setExecutor(new XprateCommand());
}
origin: TotalFreedom/TotalFreedomMod

pluginCommand.setAliases(Arrays.asList(params.aliases().split(",")));
org.bukkit.commandPluginCommandsetAliases

Popular methods of PluginCommand

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

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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