mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 09:10:01 +01:00
A class could be settingsdependent and reloadable
This commit is contained in:
parent
b67cac1d97
commit
24cc4a1d13
@ -148,11 +148,13 @@ public class AuthMeServiceInitializer {
|
||||
throw new IllegalStateException("Settings instance is null");
|
||||
}
|
||||
for (Object object : objects.values()) {
|
||||
if (object instanceof Reloadable) {
|
||||
((Reloadable) object).reload();
|
||||
} else if (object instanceof SettingsDependent) {
|
||||
if (object instanceof SettingsDependent) {
|
||||
((SettingsDependent) object).loadSettings(settings);
|
||||
}
|
||||
|
||||
if (object instanceof Reloadable) {
|
||||
((Reloadable) object).reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user