File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/xyz/srnyx/lazylibrary Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1818
1919import java .sql .SQLException ;
2020import java .util .Scanner ;
21- import java .util .function .Consumer ;
2221import 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 /**
You can’t perform that action at this time.
0 commit comments