Conditions | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package net.labymod.serverapi.bungee; |
||
33 | @Override |
||
34 | public void init( File file ) { |
||
35 | // Loading the config |
||
36 | try { |
||
37 | this.configuration = ConfigurationProvider.getProvider( YamlConfiguration.class ).load( file ); |
||
38 | } catch ( IOException e ) { |
||
39 | e.printStackTrace(); |
||
40 | } |
||
41 | |||
42 | // Adding the defaults |
||
43 | addDefaults(); |
||
44 | |||
45 | // Saving the config after adding the defaults |
||
46 | saveConfig(); |
||
47 | |||
48 | // Loading the values |
||
49 | loadValues(); |
||
50 | } |
||
72 |