Skip to content

Commit f0cd342

Browse files
committed
Replace getSettings() with setSettings()
1 parent d049e82 commit f0cd342

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/xyz/srnyx/lazylibrary/LazyLibrary.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.sql.SQLException;
2020
import java.util.Scanner;
21-
import java.util.function.Consumer;
2221
import java.util.function.Supplier;
2322

2423

@@ -46,7 +45,7 @@ public class LazyLibrary {
4645
*/
4746
public LazyLibrary() {
4847
settings.dependencies(new ApplicationDependency<>((Class<? super LazyLibrary>) getClass(), () -> this));
49-
getSettings().accept(settings);
48+
setSettings();
5049
LOGGER = LoggerFactory.getLogger(settings.loggerName);
5150
onStart();
5251

@@ -114,13 +113,10 @@ public String getSettingsFileName() {
114113
}
115114

116115
/**
117-
* Returns the {@link Consumer} to apply to the {@link LazySettings settings}
118-
*
119-
* @return the {@link Consumer} to apply to the {@link LazySettings settings}
116+
* Set the {@link #settings} for the bot here by overriding this method
120117
*/
121-
@NotNull
122-
public Consumer<LazySettings> getSettings() {
123-
return settingsConsumer -> {};
118+
public void setSettings() {
119+
// Should be overridden
124120
}
125121

126122
/**

0 commit comments

Comments
 (0)