Conditions | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package net.labymod.serverapi.bukkit; |
||
17 | public BukkitLabyModConfig( File file ) { |
||
18 | super( file ); |
||
19 | |||
20 | // Creating the file if it doesn't exist |
||
21 | if ( !file.exists() ) |
||
22 | try { |
||
23 | file.createNewFile(); |
||
|
|||
24 | } catch ( IOException e ) { |
||
25 | e.printStackTrace(); |
||
26 | } |
||
27 | |||
28 | // Loading the config |
||
29 | this.fileConfiguration = YamlConfiguration.loadConfiguration( file ); |
||
30 | |||
31 | // Initializing the config |
||
32 | init( file ); |
||
33 | } |
||
69 |