mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 14:38:55 +00:00
20 lines
593 B
Java
20 lines
593 B
Java
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();
|
|
}
|
|
}
|