A class could be settingsdependent and reloadable
This commit is contained in:
@@ -148,11 +148,13 @@ public class AuthMeServiceInitializer {
|
|||||||
throw new IllegalStateException("Settings instance is null");
|
throw new IllegalStateException("Settings instance is null");
|
||||||
}
|
}
|
||||||
for (Object object : objects.values()) {
|
for (Object object : objects.values()) {
|
||||||
if (object instanceof Reloadable) {
|
if (object instanceof SettingsDependent) {
|
||||||
((Reloadable) object).reload();
|
|
||||||
} else if (object instanceof SettingsDependent) {
|
|
||||||
((SettingsDependent) object).loadSettings(settings);
|
((SettingsDependent) object).loadSettings(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (object instanceof Reloadable) {
|
||||||
|
((Reloadable) object).reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user