Code Cleanup and Configuration (#231)

* Code Cleanup

-Fixed Spacing

* Configuration Change

-Added in proper hide/unhide double check feature to code
This commit is contained in:
Jonathan
2019-05-12 14:17:18 -06:00
committed by Kyleeld
parent a3f0e6f92e
commit 8fd1560ab3
2 changed files with 17 additions and 2 deletions

View File

@@ -193,6 +193,6 @@ public interface HidePrayersPVMConfig extends Config
keyName = "zamorakexpensive",
name = "Zamorak Piety",
description = "Shows prayers for Zamorak GWD"
)
)
default boolean showZamorakExpensive() {return false;}
}

View File

@@ -203,7 +203,22 @@ public class HidePrayersPVMPlugin extends Plugin
if (!config.showZulrahCheap()
&& !config.showZulrahExpensive()
&& !config.showBarrowsCheap()
&& !config.showBarrowsExpensive())
&& !config.showBarrowsExpensive()
&& !config.showVorkathCheap()
&& !config.showVorkathExpensive()
&& !config.showCerberusCheap()
&& !config.showCerberusExpensive()
&& !config.showCerberusRangeCheap()
&& !config.showCerberusRangeExpensive()
&& !config.showArmadylCheap()
&& !config.showArmadylExpensive()
&& !config.showBandosCheap()
&& !config.showBandosExpensive()
&& !config.showSaradominCheap()
&& !config.showSaradominExpensive()
&& !config.showZamorakCheap()
&& !config.showZamorakExpensive()
)
prayerWidget.setHidden(false);
if (config.showZulrahCheap())