crwdns148199:0crwdne148199:0
crwdns148201:0:javadoc:crwdne148201:0
crwdns148203:0crwdne148203:0
crwdns148205:0:javadoc:crwdnd148205:0:javadoc:crwdne148205:0
crwdns148207:0crwdne148207:0
crwdns148209:0crwdne148209:0
crwdns148211:0crwdne148211:0
Tip
crwdns148213:0:doc:crwdne148213:0
crwdns148215:0crwdne148215:0
import com.google.inject.Inject;
import org.spongepowered.api.plugin.PluginManager;
@Inject
private PluginManager pluginManager;
crwdns148217:0crwdne148217:0
Tip
crwdns148219:0:doc:crwdne148219:0
crwdns148221:0:javadoc:crwdne148221:0
private PluginManager pluginManager = serviceManager.provide(PluginManager.class);
crwdns148223:0crwdne148223:0
Tip
crwdns148225:0:javadoc:crwdne148225:0
crwdns148227:0crwdne148227:0
private PluginManager pluginManager = game.getPluginManager();
crwdns148229:0crwdne148229:0
crwdns148231:0crwdne148231:0
crwdns148233:0:javadoc:crwdne148233:0
import org.spongepowered.api.Sponge;
private PluginManager pluginManager = Sponge.getPluginManager();
crwdns148235:0crwdne148235:0
crwdns148237:0crwdne148237:0
crwdns148239:0crwdne148239:0
crwdns148241:0crwdne148241:0
import org.spongepowered.api.plugin.PluginContainer;
import java.util.List;
private List<PluginContainer> plugins = pluginManager.getPlugins();
crwdns148243:0crwdne148243:0
private PluginContainer myOtherPlugin = pluginManager.getPlugin("myOtherPluginId").orNull();
crwdns148245:0crwdne148245:0
crwdns148247:0crwdne148247:0
crwdns148249:0:javadoc:crwdne148249:0
private PluginContainer myOtherPlugin = pluginManager.getPlugin("myOtherPluginId").orNull();
private MyOtherPlugin pluginInstance = (MyOtherPlugin) myOtherPlugin.getInstance();
Note
crwdns148251:0:javadoc:crwdne148251:0