Added JavaPlugin.getCommand

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

No files matched your search

@@ -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;
}
}