mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2025-11-25 21:46:20 +00:00
@@ -1,6 +1,5 @@
|
||||
package com.me.tft_02.soulbound.config;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import cn.citycraft.PluginHelper.config.FileConfig;
|
||||
@@ -20,48 +19,10 @@ public class Config {
|
||||
return config.getStringList("Soulbound.Blocked_Commands");
|
||||
}
|
||||
|
||||
public static boolean getConfigOverwriteEnabled() {
|
||||
return config.getBoolean("General.Config_Update_Overwrite", true);
|
||||
}
|
||||
|
||||
public static boolean getDeleteOnDrop() {
|
||||
return config.getBoolean("Soulbound.Delete_On_Drop", false);
|
||||
}
|
||||
|
||||
public static List<String> getDiabloDropsBindOnEquipTiers() {
|
||||
return getDiabloDropsItemTiers("BindOnEquip");
|
||||
}
|
||||
|
||||
public static List<String> getDiabloDropsBindOnPickupTiers() {
|
||||
return getDiabloDropsItemTiers("BindOnPickup");
|
||||
}
|
||||
|
||||
public static List<String> getDiabloDropsBindOnUseTiers() {
|
||||
return getDiabloDropsItemTiers("BindOnUse");
|
||||
}
|
||||
|
||||
public static List<String> getDiabloDropsItemTiers(final String bindType) {
|
||||
final String[] tiersString = config.getString("Dependency_Plugins.DiabloDrops." + bindType).replaceAll(" ", "").split("[,]");
|
||||
final List<String> tiers = new ArrayList<String>();
|
||||
|
||||
for (final String tier : tiersString) {
|
||||
tiers.add(tier);
|
||||
}
|
||||
return tiers;
|
||||
}
|
||||
|
||||
public static boolean getEBRBindOnEquip() {
|
||||
return config.getBoolean("Dependency_Plugins.EpicBossRecoded.BindOnEquip");
|
||||
}
|
||||
|
||||
public static boolean getEBRBindOnPickup() {
|
||||
return config.getBoolean("Dependency_Plugins.EpicBossRecoded.BindOnPickup");
|
||||
}
|
||||
|
||||
public static boolean getEBRBindOnUse() {
|
||||
return config.getBoolean("Dependency_Plugins.EpicBossRecoded.BindOnUse");
|
||||
}
|
||||
|
||||
public static boolean getFeedbackEnabled() {
|
||||
return config.getBoolean("Soulbound.Feedback_Messages_Enabled", true);
|
||||
}
|
||||
@@ -70,36 +31,6 @@ public class Config {
|
||||
return config.getBoolean("Soulbound.Infinite_Durability", false);
|
||||
}
|
||||
|
||||
public static boolean getLoreLocksBindKeys() {
|
||||
return config.getBoolean("Dependency_Plugins.LoreLocks.Bind_Keys");
|
||||
}
|
||||
|
||||
public static List<String> getMythicDropsBindOnEquipTiers() {
|
||||
return getMythicDropsItemTiers("BindOnEquip");
|
||||
}
|
||||
|
||||
public static List<String> getMythicDropsBindOnPickupTiers() {
|
||||
return getMythicDropsItemTiers("BindOnPickup");
|
||||
}
|
||||
|
||||
public static List<String> getMythicDropsBindOnUseTiers() {
|
||||
return getMythicDropsItemTiers("BindOnUse");
|
||||
}
|
||||
|
||||
public static List<String> getMythicDropsItemTiers(final String bindType) {
|
||||
final String[] tiersString = config.getString("Dependency_Plugins.MythicDrops." + bindType).replaceAll(" ", "").split("[,]");
|
||||
final List<String> tiers = new ArrayList<String>();
|
||||
|
||||
for (final String tier : tiersString) {
|
||||
tiers.add(tier);
|
||||
}
|
||||
return tiers;
|
||||
}
|
||||
|
||||
public static boolean getPreferBeta() {
|
||||
return config.getBoolean("General.Prefer_Beta", false);
|
||||
}
|
||||
|
||||
public static boolean getPreventItemDrop() {
|
||||
return config.getBoolean("Soulbound.Prevent_Item_Drop", false);
|
||||
}
|
||||
@@ -108,18 +39,6 @@ public class Config {
|
||||
return config.getBoolean("Soulbound.Show_Name_In_Lore", true);
|
||||
}
|
||||
|
||||
public static boolean getStatsTrackingEnabled() {
|
||||
return config.getBoolean("General.Stats_Tracking", true);
|
||||
}
|
||||
|
||||
public static boolean getUpdateCheckEnabled() {
|
||||
return config.getBoolean("General.Update_Check", true);
|
||||
}
|
||||
|
||||
public static boolean getVerboseLoggingEnabled() {
|
||||
return config.getBoolean("General.Verbose_Logging", false);
|
||||
}
|
||||
|
||||
public static void load(final FileConfig config) {
|
||||
Config.config = config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user