Class PluginCommandUtils

java.lang.Object
org.bukkit.command.PluginCommandUtils

public final class PluginCommandUtils extends Object
This utility class allows us to create a PluginCommand. The constructor is marked as protected hence why this is in this exact package.
  • Method Details

    • createPluginCommand

      @NotNull public static @NotNull org.bukkit.command.PluginCommand createPluginCommand(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.plugin.Plugin owner)
      Creates a plugin command.
      Parameters:
      name - The name of the command to instantiate.
      owner - The plugin that owns this command.
      Returns:
      The new command.