File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/jp/azisaba/lgw/kdstatus Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ public KDStatusConfig(KDStatusReloaded plugin) {
3333
3434 disableDeathWorldList .add ("world" );
3535 disableKillWorldList .add ("world" );
36+
37+ // load config from FileConfiguration
38+ loadConfig ();
3639 }
3740
3841 public void loadConfig () {
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ public void onEnable() {
4747 saveConfig ();
4848
4949 pluginConfig = new KDStatusConfig (this );
50- pluginConfig .loadConfig ();
5150
5251 sqlHandler = new SQLHandler (new File (getDataFolder (), "playerData.db" ));
5352 kdDataContainer = new KillDeathDataContainer (new PlayerDataSQLController (sqlHandler ).init ());
@@ -103,7 +102,6 @@ public void onDisable() {
103102 public void reloadPluginConfig () {
104103 reloadConfig ();
105104 this .pluginConfig = new KDStatusConfig (this );
106- this .pluginConfig .loadConfig ();
107105 }
108106
109107 public PlayerDataMySQLController getKDData () {
You can’t perform that action at this time.
0 commit comments