Skip to content

Commit

Permalink
Fix documentation of PluginManager.getPlugin
Browse files Browse the repository at this point in the history
It is looking up by ID, not name
  • Loading branch information
Kobata committed Sep 14, 2014
1 parent 76bbbea commit 4983234
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/org/spongepowered/api/plugin/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@

import java.util.Collection;

import javax.annotation.Nullable;

public interface PluginManager {

/**
* Retrieves a {@link PluginContainer} based on its name.
* Retrieves a {@link PluginContainer} based on its ID.
*
* @param name The name
* @param id The plugin ID
* @return The plugin or null if not found
*/
PluginContainer getPlugin(String name);
@Nullable
PluginContainer getPlugin(String id);

/**
* Gets the {@link Logger} for the {@link PluginContainer}.
Expand Down

0 comments on commit 4983234

Please sign in to comment.