From afa93b32989705398f2e89006bb5827b63cc9ceb Mon Sep 17 00:00:00 2001 From: William Date: Tue, 20 Sep 2022 12:36:48 +0100 Subject: [PATCH] Port to MineDown-adventure, run on the Adventure platform --- README.md | 4 +++- build.gradle | 8 ++++---- .../java/net/william278/paginedown/PaginatedList.java | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6a7ee7e..166f3ca 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ PagineDown is a library for generating paginated [MineDown](https://github.com/P ![](images/list-example-in-game.png) -Requires Java 11+. PagineDown is a library that is intended to be used with MineDown (not standalone) -- your project will need to shade MineDown to use it. +Requires Java 11+. PagineDown is a library that is intended to be used with MineDown-adventure (not standalone) -- your project will need to shade MineDown-adventure to use it. + +PagineDown (v1.1+) runs on the [adventure](https://docs.adventure.kyori.net/) platform, or on platforms with adventure adapters. ## Installation PagineDown is available on JitPack. You can browse the Javadocs [here](https://javadoc.jitpack.io/net/william278/PagineDown/latest/javadoc/). diff --git a/build.gradle b/build.gradle index 0f57e4f..f165196 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'net.william278' -version '1.0.2' +version '1.1' repositories { mavenCentral() @@ -12,11 +12,11 @@ repositories { } dependencies { - compileOnly 'de.themoep:minedown:1.7.1-SNAPSHOT' + compileOnly 'de.themoep:minedown-adventure:1.7.1-SNAPSHOT' compileOnly 'org.jetbrains:annotations:23.0.0' - testImplementation 'de.themoep:minedown:1.7.1-SNAPSHOT' - testImplementation 'net.md-5:bungeecord-chat:1.16-R0.4' + testImplementation 'de.themoep:minedown-adventure:1.7.1-SNAPSHOT' + testImplementation 'net.kyori:adventure-platform-bukkit:4.1.2' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0' } diff --git a/src/main/java/net/william278/paginedown/PaginatedList.java b/src/main/java/net/william278/paginedown/PaginatedList.java index 8cb637d..1c946ad 100644 --- a/src/main/java/net/william278/paginedown/PaginatedList.java +++ b/src/main/java/net/william278/paginedown/PaginatedList.java @@ -1,7 +1,7 @@ package net.william278.paginedown; -import de.themoep.minedown.MineDown; +import de.themoep.minedown.adventure.MineDown; import org.jetbrains.annotations.NotNull; import java.util.List;