Skip to content

Commit

Permalink
Add info about paper-plugin.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SoSeDiK committed Dec 28, 2024
1 parent ba374fe commit d9a93e9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wiki/Using-Gradle.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ Add the API as dependency to your ``plugin.yml``:
depend: [NBTAPI]
```
Or, if you are using ``paper-plugin.yml``:
```yml
dependencies:
server:
NBTAPI:
load: BEFORE
required: true
join-classpath: true
```
# Option 2) Shading the NBT-API into your plugin
To include NBT-API directly in your plugin, you can use the [Gradle Shadow Plugin](https://gradleup.com/shadow/).
Expand Down
11 changes: 11 additions & 0 deletions wiki/Using-Maven.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ Add the API as dependency to your ``plugin.yml``:
depend: [NBTAPI]
```
Or, if you are using ``paper-plugin.yml``:
```yml
dependencies:
server:
NBTAPI:
load: BEFORE
required: true
join-classpath: true
```
# Option 2) Shading the NBT-API into your plugin
To include NBT-API directly in your plugin, you can use the maven shade plugin.
Expand Down

0 comments on commit d9a93e9

Please sign in to comment.