Rename method on SettingsDependent
- Rename loadSettings to reload - Make ProtocolLibService only implement SettingsDependent, not Relaodable alongside
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user