forked from kaboomserver/extras
Better config.yml handling
This commit is contained in:
parent
2ee056fb2b
commit
8c5763047d
2 changed files with 5 additions and 5 deletions
|
@ -382,7 +382,9 @@ public class Main extends JavaPlugin {
|
|||
BlockFace.UP
|
||||
);
|
||||
|
||||
saveResource("config.yml", false);
|
||||
/* Load missing config.yml defaults */
|
||||
getConfig().options().copyDefaults(true);
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
public void onEnable() {
|
||||
|
|
|
@ -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"
|
Loading…
Reference in a new issue