File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 2
2
[ ![ discord-singular] ( https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/social/discord-singular_vector.svg )] ( https://discord.offsetmonkey538.top/ )
3
3
[ ![ modrinth] ( https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg )] ( https://modrinth.com/mod/mesh-lib )
4
4
5
- Easy to use library for running your HTTP server on the same port as the Minecraft server.
5
+ Easy to use library for running your HTTP server on the same port as the Minecraft server.
6
+ Available for both fabric and paper.
6
7
7
8
Javadoc is available [ here] ( https://maven.offsetmonkey538.top/javadoc/releases/top/offsetmonkey538/meshlib/mesh-lib/latest )
8
9
@@ -32,12 +33,15 @@ repositories {
32
33
}
33
34
```
34
35
35
- Then include the library in your dependencies block:
36
+ This library is meant to be used as a JIJ (Jar-In-Jar), meaning you include it inside your mod/plugin.
37
+ To do that you can use ` include ` for fabric and the shadow gradle plugin for paper:
36
38
``` groovy
37
39
dependencies {
38
- // Others
40
+ // For fabric
41
+ include modImplementation("top.offsetmonkey538.meshlib:mesh-lib-fabric:1.0.3+1.21.4")
39
42
40
- include modImplementation("top.offsetmonkey538.meshlib:mesh-lib:1.0.0+1.21")
43
+ // For paper
44
+ implementation "top.offsetmonkey538.meshlib:mesh-lib-paper:1.0.3+1.21.4"
41
45
}
42
46
```
43
47
Make sure to use the latest version.
@@ -75,7 +79,7 @@ public void handleRequest(@NotNull ChannelHandlerContext ctx, @NotNull FullHttpR
75
79
}
76
80
```
77
81
78
- Finally, you'll need to actually register your handler. Put this in your mod initializer:
82
+ Finally, you'll need to actually register your handler. Put this in your mod or plugin initializer:
79
83
``` java
80
84
@Override
81
85
public void onInitializeServer() {
You can’t perform that action at this time.
0 commit comments