This repository was archived by the owner on Jul 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/de/rexlmanu/viaversionaddon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ dependencies {
9292
9393 shade(" org.yaml:snakeyaml:1.28" )
9494 shade(" com.viaversion:viaversion:4.0.1-SNAPSHOT" ) { transitive = false }
95- shade(" com.viaversion:viabackwards:4.0.1-SNAPSHOT" ) { transitive = false }
96- shade(" com.viaversion:viarewind-fabric:2.0.1-SNAPSHOT" ) { transitive = false }
95+ shade(" com.viaversion:viabackwards:4.0.1-SNAPSHOT" )
96+ shade(" com.viaversion:viarewind-fabric:2.0.1-SNAPSHOT" )
9797
9898 compile(files(
9999 ' libs/lm_api_mc1.16.5.jar' ,
Original file line number Diff line number Diff line change 55import com .viaversion .viaversion .api .Via ;
66import com .viaversion .viaversion .api .data .MappingDataLoader ;
77import de .rexlmanu .viaversionaddon .loader .AddonBackwardsLoader ;
8+ import de .rexlmanu .viaversionaddon .loader .AddonRewindLoader ;
89import de .rexlmanu .viaversionaddon .loader .AddonViaProviderLoader ;
910import de .rexlmanu .viaversionaddon .menu .ProtocolScreen ;
1011import de .rexlmanu .viaversionaddon .platform .AddonInjector ;
@@ -83,6 +84,7 @@ public void onEnable() {
8384
8485
8586 new AddonBackwardsLoader (new File (this .dataFolder , "backwards" ));
87+ new AddonRewindLoader (new File (this .dataFolder , "viarewind" ));
8688
8789 this .initFuture .complete (null );
8890
Original file line number Diff line number Diff line change 1+ package de .rexlmanu .viaversionaddon .loader ;
2+
3+ import de .gerrygames .viarewind .api .ViaRewindConfigImpl ;
4+ import de .gerrygames .viarewind .api .ViaRewindPlatform ;
5+ import lombok .experimental .Accessors ;
6+
7+ import java .io .File ;
8+ import java .util .logging .Logger ;
9+
10+ @ Accessors (fluent = true )
11+ public class AddonRewindLoader implements ViaRewindPlatform {
12+ public AddonRewindLoader (File file ) {
13+ ViaRewindConfigImpl config = new ViaRewindConfigImpl (new File (file , "config.yml" ));
14+ config .reloadConfig ();
15+ this .init (config );
16+ }
17+
18+ @ Override
19+ public Logger getLogger () {
20+ return Logger .getLogger ("ViaRewind" );
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments