File tree Expand file tree Collapse file tree 4 files changed +23
-27
lines changed
org/mangorage/mangobotcore/transformer Expand file tree Collapse file tree 4 files changed +23
-27
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ repositories {
6161dependencies {
6262
6363 installer(' org.mangorage:installer:4.0.13' )
64- bootstrap(" org.mangorage:mangobotbootstrap:1.0.22 " )
64+ bootstrap(" org.mangorage:mangobotbootstrap:1.0.27 " )
6565
6666 library(' net.dv8tion:JDA:5.3.2' )
6767 library(' com.google.code.gson:gson:2.10.1' )
Original file line number Diff line number Diff line change 55
66 requires com .google .gson ;
77 requires net .dv8tion .jda ;
8+ requires org .mangorage .bootstrap ;
89
910 // Common Utils
1011 exports org .mangorage .commonutils .misc ;
3132 exports org .mangorage .mangobotcore ;
3233
3334 provides org .mangorage .mangobotcore .plugin .api .Plugin with org .mangorage .mangobotcore .MangoBotCore ;
35+ provides org .mangorage .bootstrap .api .IClassTransformer with org .mangorage .mangobotcore .transformer .ExampleTransformer ;
36+
3437 uses org .mangorage .mangobotcore .plugin .api .Plugin ;
38+ uses org .mangorage .bootstrap .api .IClassTransformer ;
3539}
Original file line number Diff line number Diff line change 1+ package org .mangorage .mangobotcore .transformer ;
2+
3+
4+ import org .mangorage .bootstrap .api .transformer .IClassTransformer ;
5+ import org .mangorage .bootstrap .api .transformer .TransformResult ;
6+ import org .mangorage .bootstrap .api .transformer .TransformerFlag ;
7+
8+ public final class ExampleTransformer implements IClassTransformer {
9+ @ Override
10+ public TransformResult transform (String s , byte [] bytes ) {
11+ return new TransformResult (null , TransformerFlag .NO_REWRITE );
12+ }
13+
14+ @ Override
15+ public String getName () {
16+ return "Test" ;
17+ }
18+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments