Add default configs in src/main/resources/
- config.yml - main plugin settings - messages.yml - all messages with &#rrggbb colors - skillcheck.yml - QTE settings with colors - game.yml - game balance settings - locations.yml - object coordinates template - Update ConfigManager to load main config - Update build.gradle.kts to process all yml files
This commit is contained in:
parent
2a2b9f4b5b
commit
78c881e94c
7 changed files with 494 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ public class ConfigManager {
|
|||
private GameConfig gameConfig;
|
||||
private MessagesConfig messagesConfig;
|
||||
private SkillCheckConfig skillCheckConfig;
|
||||
private FileConfiguration mainConfig;
|
||||
|
||||
public ConfigManager(mdbd plugin) {
|
||||
this.plugin = plugin;
|
||||
|
|
@ -27,6 +28,7 @@ public class ConfigManager {
|
|||
}
|
||||
|
||||
public void loadConfigs() {
|
||||
this.mainConfig = loadConfig("config.yml");
|
||||
this.locationsConfig = new LocationsConfig(loadConfig("locations.yml"));
|
||||
this.gameConfig = new GameConfig(loadConfig("game.yml"));
|
||||
this.messagesConfig = new MessagesConfig(loadConfig("messages.yml"));
|
||||
|
|
@ -84,4 +86,8 @@ public class ConfigManager {
|
|||
public SkillCheckConfig getSkillCheck() {
|
||||
return skillCheckConfig;
|
||||
}
|
||||
|
||||
public FileConfiguration getMainConfig() {
|
||||
return mainConfig;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue