mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-08 19:38:15 +01:00
add safety check
This commit is contained in:
parent
da661466d6
commit
7d815a1d9f
@ -97,6 +97,10 @@ public class AuctionsMenu extends Holder {
|
||||
}
|
||||
|
||||
for (final String key : this.options) {
|
||||
if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (this.config.contains("Settings.GUISettings.OtherSettings." + key + ".Toggle")) {
|
||||
if (!this.config.getBoolean("Settings.GUISettings.OtherSettings." + key + ".Toggle")) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user