mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Added death messages config manager.
This commit is contained in:
parent
e99a9b65fe
commit
b3731752eb
1 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
package com.projectkorra.ProjectKorra;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
public class DeathMessageConfigManager {
|
||||
|
||||
static ProjectKorra plugin;
|
||||
|
||||
public DeathMessageConfigManager(ProjectKorra plugin) {
|
||||
DeathMessageConfigManager.plugin = plugin;
|
||||
configCheck();
|
||||
}
|
||||
|
||||
public static void configCheck() {
|
||||
|
||||
FileConfiguration config = ProjectKorra.deathMsgConfig.getConfig();
|
||||
|
||||
config.addDefault("Properties.Enabled", true);
|
||||
config.addDefault("Air.AirBlast", "example message");
|
||||
config.addDefault("Fire.FireBlast", "example message");
|
||||
|
||||
config.options().copyDefaults(true);
|
||||
ProjectKorra.deathMsgConfig.saveConfig();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue