package Ġme . eb on j aeger . app let re ere loaded Ċ Ċ import Ġch . jal u . config me . Settings Manager Builder Ċ import Ġco . a ik ar . commands . Paper Command Manager Ċ import Ġme . eb on j aeger . app let re ere loaded . command . General Commands Ċ import Ġme . eb on j aeger . app let re ere loaded . configuration . Plugin Settings Ċ import Ġme . eb on j aeger . app let re ere loaded . listener . Block Break Listener Ċ import Ġme . eb on j aeger . app let re ere loaded . listener . Leaf Dec ay Listener Ċ import Ġorg . bukkit . plugin . java . Java Plugin Ċ import Ġjava . io . File Ċ import Ġjava . nio . file . Files Ċ Ċ class ĠApple Tree Re loaded Ġ: ĠJava Plugin () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Enable () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfile Ġ= ĠFile ( data Folder , Ġ" config . yml ") ĊĊĠĠĠĠĠĠĠ Ġ// ĠCreate Ġconfig Ġfile Ġif Ġit Ġdoes Ġnot Ġexist ĊĠĠĠĠĠĠĠ Ġif Ġ(! Files . exists ( file . to Path ())) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsave Resource (" config . yml ", Ġfalse ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġsettings Ġ= ĠSettings Manager Builder ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Yaml File ( file ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. configuration Data ( Plugin Settings :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. use Default Migration Service () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create () ĊĊĠĠĠĠĠĠĠ Ġserver . plugin Manager . register Events ( Block Break Listener ( settings ), Ġthis ) ĊĠĠĠĠĠĠĠ Ġserver . plugin Manager . register Events ( Leaf Dec ay Listener ( settings ), Ġthis ) ĊĊĠĠĠĠĠĠĠ Ġval Ġcommand Manager Ġ= ĠPaper Command Manager ( this ) ĊĠĠĠĠĠĠĠ Ġcommand Manager . register Command ( General Commands ( settings )) ĊĠĠĠ Ġ} Ċ } Ċ