Skip to content

Commit

Permalink
fix: config default loaded anyway & plugin.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann151924 committed Sep 19, 2023
1 parent 5d18814 commit 5f71680
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class Config {
public FileConfiguration config;

public Config(AurionchatAutoMessage plugin) {
plugin.getConfig().options().copyDefaults(true);
plugin.saveDefaultConfig();
config = plugin.getConfig();
}
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ rabbitmq:
announcements:
#You can use it for based language announcement for example
# Use the miniMessage format from kyori - more info -> https://docs.advntr.dev/minimessage/format.html
auto-fr:
- "Annonce 1"
- "Annonce 2"
auto-en:
- "Annonce 1 en"
- "Annonce 2 en"
auto-test:
auto-fr:
- '<yellow>Hello <blue>World</blue>!'
- '<hover:show_text:"<red>test:TEST">TEST <click:run_command:test>TEST'
- "<hover:show_text:'<red>Hover with a<newline><green>line break'>Text with<newline>line break</hover>"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: AurionchatAutoMessage
version: ${version}
main: com.mineaurion.aurionchatannounce.AurionchatAutoMessage
depend: []
api-version: '1.20'
api-version: '1.19'

0 comments on commit 5f71680

Please sign in to comment.