public boolean useTitlesForXPEvent() { return config.getBoolean("Feedback.Events.XP.SendTitles", true); }
public boolean isPartyExperienceBarsEnabled() { return config.getBoolean("Experience_Bars.Update.Party", true); }
public boolean doesSkillCommandSendBlankLines() { return config.getBoolean("Feedback.SkillCommand.BlankLinesAboveHeader", true); }
public boolean getIsEnabled(SoundType soundType) { String key = "Sounds."+soundType.toString()+".Enabled"; return config.getBoolean(key, true); } }
/** * Some SubSkills have the ability to retain classic functionality * @param subSkillType SubSkillType with classic functionality * @return true if the subskill is in classic mode */ public boolean isSubSkillClassic(SubSkillType subSkillType) { return config.getBoolean(subSkillType.getAdvConfigAddress()+".Classic"); }
public boolean doesNotificationUseActionBar(NotificationType notificationType) { return config.getBoolean("Feedback.ActionBarNotifications."+notificationType.toString()+".Enabled", true); }
public boolean getDoExperienceBarsAlwaysUpdateTitle() { return config.getBoolean("Experience_Bars.ThisMayCauseLag.AlwaysUpdateTitlesWhenXPIsGained.Enable", false) || getAddExtraDetails(); }
public static boolean isDebugEnabled() { try { return plugin.getConfig().getBoolean("global.debug", false); } catch (Throwable ex) { // Enable in testing environments return true; } }
public boolean doesNotificationSendCopyToChat(NotificationType notificationType) { return config.getBoolean("Feedback.ActionBarNotifications."+notificationType.toString()+".SendCopyOfMessageToChat", false); }
public LogFilter(mcMMO plugin) { // Doing a config loading lite here, because we can't depend on the config loader to have loaded before any debug messages are sent debug = plugin.getConfig().getBoolean("General.Verbose_Logging"); }
@Override protected void loadKeys() { for (UpgradeType type : UpgradeType.values()) { if (config.getBoolean("Upgrades_Finished." + type.toString())) { setNeededUpgrades.remove(type); } } plugin.debug("Needed upgrades: " + Arrays.toString(setNeededUpgrades.toArray(new UpgradeType[setNeededUpgrades.size()]))); } }
public boolean isBreakableType(Material type) { return ((BedwarsRel.getInstance().getConfig().getBoolean("breakable-blocks.use-as-blacklist") && !this.breakableTypes.contains(type)) || (!BedwarsRel.getInstance().getConfig().getBoolean("breakable-blocks.use-as-blacklist") && this.breakableTypes.contains(type))); }
/** * Whether or not this primary skill is enabled * @param primarySkillType target primary skill * @return true if enabled */ public boolean isPrimarySkillEnabled(PrimarySkillType primarySkillType) { return config.getBoolean(StringUtils.getCapitalized(primarySkillType.toString())+".Enabled", true); } }
private void checkForUpdates() { if (getConfig().getBoolean("global-settings.update-notification", false)) { VersionChecker.checkForUpdates(this, null); } }
public boolean getBooleanConfig(String key, boolean defaultBool) { FileConfiguration config = this.getConfig(); if (config.contains(key) && config.isBoolean(key)) { return config.getBoolean(key); } return defaultBool; }
public boolean toMainLobby() { if (this.getConfig().contains("endgame.mainlobby-enabled")) { return this.getConfig().getBoolean("endgame.mainlobby-enabled"); } return false; }
/** * Whether or not a skill is enabled * Defaults true * @param abstractSubSkill SubSkill definition to check * @return true if subskill is enabled */ public boolean isSkillEnabled(AbstractSubSkill abstractSubSkill) { return config.getBoolean(StringUtils.getCapitalized(abstractSubSkill.getPrimarySkill().toString())+"."+ abstractSubSkill.getConfigKeyName()+".Enabled", true); }
public boolean metricsEnabled() { if (this.getConfig().contains("plugin-metrics") && this.getConfig().isBoolean("plugin-metrics")) { return this.getConfig().getBoolean("plugin-metrics"); } return false; }
public boolean allPlayersBackToMainLobby() { if (this.getConfig().contains("endgame.all-players-to-mainlobby") && this.getConfig().isBoolean("endgame.all-players-to-mainlobby")) { return this.getConfig().getBoolean("endgame.all-players-to-mainlobby"); } return false; }
public boolean spectationEnabled() { if (this.getConfig().contains("spectation-enabled") && this.getConfig().isBoolean("spectation-enabled")) { return this.getConfig().getBoolean("spectation-enabled"); } return true; }