This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 9d9b67c
1 parent b5dddbe commit 9d9b67c Copy full SHA for 9d9b67c
File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,9 @@ public function onLoad() : void{
76
76
* Called when the plugin is enabled
77
77
*/
78
78
public function onEnable () : void {
79
- //Load config file
80
- $ this ->saveDefaultConfig ();
81
- $ this ->reloadConfig ();
79
+ //Load config and language
82
80
$ config = $ this ->getConfig ();
83
-
84
- //Load language file
85
81
$ this ->loadLanguage ($ config ->getNested ("settings.language " ));
86
- $ this ->getLogger ()->info ($ this ->language ->translate ("language.selected " , [
87
- $ this ->language ->getName (),
88
- $ this ->language ->getLang ()
89
- ]));
90
82
91
83
//Load registered chunk map
92
84
if (file_exists ($ file = "{$ this ->getDataFolder ()}data.dat " )){
You can’t perform that action at this time.
0 commit comments