Package org.bukkit.command
Class PluginCommandUtils
java.lang.Object
org.bukkit.command.PluginCommandUtils
This utility class allows us to create a
PluginCommand. The constructor is marked as protected hence why this
is in this exact package.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.command.PluginCommandcreatePluginCommand(@NotNull String name, @NotNull org.bukkit.plugin.Plugin owner) Creates a plugin command.
-
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.
-