1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-20 07:01:22 +01:00

Removed EnableEnchants boolean, it was unnecessary

This commit is contained in:
montlikadani 2018-09-09 15:31:45 +02:00
parent d520554b6d
commit 32fcc37b68
2 changed files with 2 additions and 4 deletions

View File

@ -564,7 +564,7 @@ public class ConfigManager {
} else
skullMeta.setOwner(skullOwner);
GUIitem.setItemMeta(skullMeta);
} else if (guiSection.contains("Enchantments") && Jobs.getGCManager().JobsGUIEnableEnchants) {
} else if (guiSection.contains("Enchantments")) {
List<String> enchants = guiSection.getStringList("Enchantments");
if (enchants.size() > 0) {
for (String str4 : enchants) {

View File

@ -102,7 +102,7 @@ public class GeneralConfigManager {
public boolean fixAtMaxLevel, ToggleActionBar, TitleChangeChat, TitleChangeActionBar, LevelChangeChat,
LevelChangeActionBar, SoundLevelupUse, SoundTitleChangeUse, UseServerAccount, EmptyServerAcountChat,
EmptyServerAcountActionBar, ActionBarsMessageByDefault, ShowTotalWorkers, ShowPenaltyBonus, useDynamicPayment,
JobsGUIOpenOnBrowse, JobsGUIShowChatBrowse, JobsGUISwitcheButtons, JobsGUIOpenOnJoin, JobsGUIEnableEnchants;
JobsGUIOpenOnBrowse, JobsGUIShowChatBrowse, JobsGUISwitcheButtons, JobsGUIOpenOnJoin;
private int JobsGUIRows, JobsGUIBackButton,
JobsGUIStartPosition,
@ -916,8 +916,6 @@ public class GeneralConfigManager {
c.getW().addComment("JobsGUI.SwitcheButtons", "With true left mouse button will join job and right will show more info",
"With false left mouse button will show more info, rigth will join job", "Dont forget to adjust locale file");
JobsGUISwitcheButtons = c.get("JobsGUI.SwitcheButtons", false);
c.getW().addComment("JobsGUI.EnableEnchants", "Enables the enchantment for items");
JobsGUIEnableEnchants = c.get("JobsGUI.EnableEnchants", true);
c.getW().addComment("JobsGUI.Rows", "Defines size in rows of GUI");
JobsGUIRows = c.get("JobsGUI.Rows", 5);
c.getW().addComment("JobsGUI.BackButtonSlot", "Defines back button slot in GUI");