crwdns39462:0crwdne39462:0

crwdns39463:0:javadoc:crwdne39463:0

crwdns39464:0crwdne39464:0

crwdns39465:0:javadoc:crwdnd39465:0:javadoc:crwdne39465:0

crwdns39466:0crwdne39466:0

crwdns39467:0crwdne39467:0

crwdns39468:0crwdne39468:0

Tip

crwdns39469:0:doc:crwdne39469:0

crwdns39470:0crwdne39470:0

import com.google.inject.Inject;
import org.spongepowered.api.plugin.PluginManager;

@Inject
private PluginManager pluginManager;

crwdns39471:0crwdne39471:0

Tip

crwdns39472:0:doc:crwdne39472:0

crwdns39473:0:javadoc:crwdne39473:0

private PluginManager pluginManager = serviceManager.provide(PluginManager.class);

crwdns39474:0crwdne39474:0

Tip

crwdns39475:0:javadoc:crwdne39475:0

crwdns39476:0crwdne39476:0

private PluginManager pluginManager = game.getPluginManager();

crwdns39477:0crwdne39477:0

crwdns39478:0crwdne39478:0

crwdns39479:0:javadoc:crwdne39479:0

import org.spongepowered.api.Sponge;

private PluginManager pluginManager = Sponge.getPluginManager();

crwdns39480:0crwdne39480:0

crwdns39481:0crwdne39481:0

crwdns39482:0crwdne39482:0

crwdns39483:0crwdne39483:0

import org.spongepowered.api.plugin.PluginContainer;

import java.util.List;

private List<PluginContainer> plugins = pluginManager.getPlugins();

crwdns39484:0crwdne39484:0

private PluginContainer myOtherPlugin = pluginManager.getPlugin("myOtherPluginId").orNull();

crwdns39485:0crwdne39485:0

crwdns39486:0crwdne39486:0

crwdns39487:0:javadoc:crwdne39487:0

private PluginContainer myOtherPlugin = pluginManager.getPlugin("myOtherPluginId").orNull();
private MyOtherPlugin pluginInstance = (MyOtherPlugin) myOtherPlugin.getInstance();

Note

crwdns39488:0:javadoc:crwdne39488:0