Rename method on SettingsDependent

- Rename loadSettings to reload
- Make ProtocolLibService only implement SettingsDependent, not Relaodable alongside
This commit is contained in:
ljacqu
2016-07-09 09:24:25 +02:00
parent dff09935e6
commit aa6fe3e874
14 changed files with 24 additions and 28 deletions
@@ -149,7 +149,7 @@ public class AuthMeServiceInitializer {
}
for (Object object : objects.values()) {
if (object instanceof SettingsDependent) {
((SettingsDependent) object).loadSettings(settings);
((SettingsDependent) object).reload(settings);
}
if (object instanceof Reloadable) {
@@ -8,9 +8,9 @@ import fr.xephi.authme.settings.NewSetting;
public interface SettingsDependent {
/**
* Loads the needed settings.
* Performs a reload with the provided settings instance.
*
* @param settings the settings instance
*/
void loadSettings(NewSetting settings);
void reload(NewSetting settings);
}