Better config.yml handling

This commit is contained in:
mathiascode 2019-12-14 23:31:28 +02:00
parent 2ee056fb2b
commit 8c5763047d
2 changed files with 5 additions and 5 deletions

View file

@ -381,8 +381,10 @@ public class Main extends JavaPlugin {
BlockFace.EAST,
BlockFace.UP
);
saveResource("config.yml", false);
/* Load missing config.yml defaults */
getConfig().options().copyDefaults(true);
saveConfig();
}
public void onEnable() {

View file

@ -1,11 +1,9 @@
# Player connection
# Configuration for Extras plugin
allowJoinOnFullServer: true
enableKick: false
enableJoinRestrictions: false
opOnJoin: true
playerJoinTitle: "§7Welcome to Kaboom!"
playerJoinSubtitle: "Free OP • Anarchy • Creative"
# Chat
opTag: "§4§l[§c§lOP§4§l] §c"
deOpTag: "§8§l[§7§lDeOP§8§l] §7"