crwdns122321:0crwdne122321:0
crwdns122323:0:doc:crwdne122323:0
crwdns122325:0crwdne122325:0
crwdns122327:0crwdne122327:0
crwdns122329:0crwdne122329:0
crwdns122331:0crwdne122331:0
crwdns122333:0crwdne122333:0
Warning
crwdns122335:0crwdne122335:0
Note
crwdns122337:0crwdne122337:0
crwdns122339:0crwdne122339:0
crwdns122341:0:javadoc:crwdnd122341:0:javadoc:crwdne122341:0
crwdns122343:0:javadoc:crwdnd122343:0:javadoc:crwdne122343:0
crwdns122345:0crwdne122345:0
crwdns122347:0crwdne122347:0
import com.google.inject.Inject;
import org.spongepowered.api.plugin.PluginContainer;
import org.spongepowered.api.util.metric.MetricsConfigManager;
@Inject
private PluginContainer container;
@Inject
private MetricsConfigManager metricsConfigManager;
public boolean hasConsent() {
return this.metricsConfigManager.getCollectionState(this.container).asBoolean();
}