Files
Paper/paper-api/src/main/java/org/bukkit/command/PluginIdentifiableCommand.java
2019-03-13 17:42:57 +11:00

22 lines
623 B
Java

package org.bukkit.command;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
/**
* This interface is used by the help system to group commands into
* sub-indexes based on the {@link Plugin} they are a part of. Custom command
* implementations will need to implement this interface to have a sub-index
* automatically generated on the plugin's behalf.
*/
public interface PluginIdentifiableCommand {
/**
* Gets the owner of this PluginIdentifiableCommand.
*
* @return Plugin that owns this PluginIdentifiableCommand.
*/
@NotNull
public Plugin getPlugin();
}