mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
refactor: wip cleanup
- Added a bunch of events - Refactor database backend - Major code cleanup - Dependency bumps - CI workflows
This commit is contained in:
75 files changed
+4019
-1303
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package com.github.alathra.AlathranWars.utility;
|
||||
|
||||
import com.github.alathra.AlathranWars.AlathranWars;
|
||||
import com.github.alathra.AlathranWars.config.ConfigHandler;
|
||||
import com.github.milkdrinkers.Crate.Config;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Convenience class for accessing {@link ConfigHandler#getConfig}
|
||||
*/
|
||||
public abstract class Cfg {
|
||||
/**
|
||||
* Convenience method for {@link ConfigHandler#getConfig} to getConnection {@link Config}
|
||||
*/
|
||||
@NotNull
|
||||
public static Config get() {
|
||||
return AlathranWars.getInstance().getConfigHandler().getConfig();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user