@@ -101,6 +101,12 @@ public class Settings implements ConfigObject
101101 @ ConfigEntry (path = "gui-settings.add-completed-glow" )
102102 private boolean addCompletedGlow = true ;
103103
104+
105+ @ ConfigComment ("" )
106+ @ ConfigComment ("Add enchanted glow to completed levels" )
107+ @ ConfigEntry (path = "gui-settings.add-completed-level-glow" )
108+ private boolean addCompletedLevelGlow = true ;
109+
104110 @ ConfigComment ("" )
105111 @ ConfigComment ("This variable allows to choose which Challenges users can see in Challenges GUI." )
106112 @ ConfigComment ("Valid values are:" )
@@ -117,6 +123,20 @@ public class Settings implements ConfigObject
117123 @ ConfigEntry (path = "gui-settings.locked-level-icon" )
118124 private ItemStack lockedLevelIcon = new ItemStack (Material .BOOK );
119125
126+
127+ @ ConfigComment ("" )
128+ @ ConfigComment ("This allows to change default completed level icon. If this option is set" )
129+ @ ConfigComment ("to null, the level icon will not be overwritten." )
130+ @ ConfigEntry (path = "gui-settings.completed-level-icon" )
131+ private ItemStack completedLevelIcon = null ;
132+
133+
134+ @ ConfigComment ("" )
135+ @ ConfigComment ("This allows to change default selected level icon. If this option is set" )
136+ @ ConfigComment ("to null, the level icon will not be overwritten." )
137+ @ ConfigEntry (path = "gui-settings.selected-level-icon" )
138+ private ItemStack selectedLevelIcon = null ;
139+
120140 @ ConfigComment ("" )
121141 @ ConfigComment ("This indicate if challenges data will be stored per island (true) or per player (false)." )
122142 @ ConfigEntry (path = "store-island-data" )
@@ -224,6 +244,15 @@ public boolean isAddCompletedGlow()
224244 }
225245
226246
247+ /**
248+ * @return addCompletedLevelGlow value.
249+ */
250+ public boolean isAddCompletedLevelGlow ()
251+ {
252+ return this .addCompletedLevelGlow ;
253+ }
254+
255+
227256 /**
228257 * @return disabledGameModes value.
229258 */
@@ -346,6 +375,34 @@ public ItemStack getLockedLevelIcon()
346375 }
347376
348377
378+ /**
379+ * This method returns the selectedLevelIcon value.
380+ * @return the value of selectedLevelIcon.
381+ */
382+ public ItemStack getSelectedLevelIcon ()
383+ {
384+ if (selectedLevelIcon != null )
385+ {
386+ return selectedLevelIcon .clone ();
387+ }
388+ return null ;
389+ }
390+
391+
392+ /**
393+ * This method returns the completedLevelIcon value.
394+ * @return the value of completedLevelIcon.
395+ */
396+ public ItemStack getCompletedLevelIcon ()
397+ {
398+ if (completedLevelIcon != null )
399+ {
400+ return completedLevelIcon .clone ();
401+ }
402+ return null ;
403+ }
404+
405+
349406 /**
350407 * This method returns the showCompletionTitle object.
351408 * @return the showCompletionTitle object.
@@ -435,6 +492,28 @@ public void setLockedLevelIcon(ItemStack lockedLevelIcon)
435492 }
436493
437494
495+ /**
496+ * This method sets the selectedLevelIcon value.
497+ * @param selectedLevelIcon the selectedLevelIcon new value.
498+ *
499+ */
500+ public void setSelectedLevelIcon (ItemStack selectedLevelIcon )
501+ {
502+ this .selectedLevelIcon = selectedLevelIcon ;
503+ }
504+
505+
506+ /**
507+ * This method sets the completedLevelIcon value.
508+ * @param completedLevelIcon the completedLevelIcon new value.
509+ *
510+ */
511+ public void setCompletedLevelIcon (ItemStack completedLevelIcon )
512+ {
513+ this .completedLevelIcon = completedLevelIcon ;
514+ }
515+
516+
438517 /**
439518 * This method sets the userGuiMode value.
440519 * @param userGuiMode the userGuiMode new value.
@@ -490,6 +569,14 @@ public void setAddCompletedGlow(boolean addCompletedGlow)
490569 this .addCompletedGlow = addCompletedGlow ;
491570 }
492571
572+ /**
573+ * @param addCompletedLevelGlow new addCompletedLevelGlow value.
574+ */
575+ public void setAddCompletedLevelGlow (boolean addCompletedLevelGlow )
576+ {
577+ this .addCompletedLevelGlow = addCompletedLevelGlow ;
578+ }
579+
493580
494581 /**
495582 * @param disabledGameModes new disabledGameModes value.
0 commit comments