Added JavaPlugin.getCommand

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-02-28 01:35:03 +00:00
parent 3eb015141a
commit 9c2782bea7
2 changed files with 34 additions and 0 deletions

View File

@@ -32,4 +32,13 @@ public final class PluginCommand extends Command {
public void setExecutor(CommandExecutor executor) {
this.executor = executor;
}
/**
* Gets the owner of this PluginCommand
*
* @return Plugin that owns this command
*/
public Plugin getPlugin() {
return owningPlugin;
}
}