mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
build: update MineDown dependencies, close #568
This commit is contained in:
5 files changed
+10
-15
No files matched your search
+2
-2
@@ -9,7 +9,7 @@ dependencies {
|
|||||||
|
|
||||||
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
|
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
|
||||||
compileOnly 'org.jetbrains:annotations:24.1.0'
|
compileOnly 'org.jetbrains:annotations:24.1.0'
|
||||||
compileOnly 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
|
compileOnly 'net.william278:minedown:1.8.2'
|
||||||
compileOnly 'net.william278:DesertWell:2.0.4'
|
compileOnly 'net.william278:DesertWell:2.0.4'
|
||||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
||||||
compileOnly 'me.clip:placeholderapi:2.11.5'
|
compileOnly 'me.clip:placeholderapi:2.11.5'
|
||||||
@@ -19,7 +19,7 @@ dependencies {
|
|||||||
compileOnly 'org.projectlombok:lombok:1.18.32'
|
compileOnly 'org.projectlombok:lombok:1.18.32'
|
||||||
|
|
||||||
testImplementation 'com.github.seeseemelk:MockBukkit-v1.17:1.13.0'
|
testImplementation 'com.github.seeseemelk:MockBukkit-v1.17:1.13.0'
|
||||||
testImplementation 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
|
testImplementation 'net.william278:minedown:1.8.2'
|
||||||
testImplementation 'net.kyori:adventure-platform-bukkit:4.3.2'
|
testImplementation 'net.kyori:adventure-platform-bukkit:4.3.2'
|
||||||
testImplementation 'org.apache.commons:commons-text:1.11.0'
|
testImplementation 'org.apache.commons:commons-text:1.11.0'
|
||||||
testImplementation "redis.clients:jedis:${jedis_version}"
|
testImplementation "redis.clients:jedis:${jedis_version}"
|
||||||
|
|||||||
+3
-3
@@ -3,12 +3,12 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
api 'net.william278:minedown:1.8.2'
|
||||||
|
api 'net.william278:paginedown:1.1.2'
|
||||||
|
api 'net.william278:DesertWell:2.0.4'
|
||||||
api 'commons-io:commons-io:2.15.1'
|
api 'commons-io:commons-io:2.15.1'
|
||||||
api 'org.apache.commons:commons-text:1.11.0'
|
api 'org.apache.commons:commons-text:1.11.0'
|
||||||
api 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
|
|
||||||
api 'com.google.code.gson:gson:2.10.1'
|
api 'com.google.code.gson:gson:2.10.1'
|
||||||
api 'net.william278:PagineDown:1.1'
|
|
||||||
api 'net.william278:DesertWell:2.0.4'
|
|
||||||
api 'com.github.Exlll.ConfigLib:configlib-yaml:v4.5.0'
|
api 'com.github.Exlll.ConfigLib:configlib-yaml:v4.5.0'
|
||||||
api('com.zaxxer:HikariCP:5.1.0') {
|
api('com.zaxxer:HikariCP:5.1.0') {
|
||||||
exclude module: 'slf4j-api'
|
exclude module: 'slf4j-api'
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ public class Locales {
|
|||||||
|
|
||||||
value.append(c);
|
value.append(c);
|
||||||
}
|
}
|
||||||
return value.toString().replace("__", "_\\_");
|
return value.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
package net.william278.huskhomes.user;
|
package net.william278.huskhomes.user;
|
||||||
|
|
||||||
import de.themoep.minedown.adventure.MineDown;
|
import de.themoep.minedown.adventure.MineDown;
|
||||||
import de.themoep.minedown.adventure.MineDownParser;
|
|
||||||
import net.kyori.adventure.audience.Audience;
|
import net.kyori.adventure.audience.Audience;
|
||||||
import net.kyori.adventure.key.InvalidKeyException;
|
import net.kyori.adventure.key.InvalidKeyException;
|
||||||
import net.kyori.adventure.key.Key;
|
import net.kyori.adventure.key.Key;
|
||||||
@@ -95,7 +94,7 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
|
|||||||
* @param subTitle whether to send the title as a subtitle ({@code true} for a subtitle, {@code false} for a title)
|
* @param subTitle whether to send the title as a subtitle ({@code true} for a subtitle, {@code false} for a title)
|
||||||
*/
|
*/
|
||||||
public void sendTitle(@NotNull MineDown mineDown, boolean subTitle) {
|
public void sendTitle(@NotNull MineDown mineDown, boolean subTitle) {
|
||||||
final Component message = mineDown.disable(MineDownParser.Option.SIMPLE_FORMATTING).replace().toComponent();
|
final Component message = mineDown.toComponent();
|
||||||
getAudience().showTitle(Title.title(
|
getAudience().showTitle(Title.title(
|
||||||
subTitle ? Component.empty() : message,
|
subTitle ? Component.empty() : message,
|
||||||
subTitle ? message : Component.empty()
|
subTitle ? message : Component.empty()
|
||||||
@@ -108,9 +107,7 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
|
|||||||
* @param mineDown the parsed {@link MineDown} to send
|
* @param mineDown the parsed {@link MineDown} to send
|
||||||
*/
|
*/
|
||||||
public void sendActionBar(@NotNull MineDown mineDown) {
|
public void sendActionBar(@NotNull MineDown mineDown) {
|
||||||
getAudience().sendActionBar(mineDown
|
getAudience().sendActionBar(mineDown.toComponent());
|
||||||
.disable(MineDownParser.Option.SIMPLE_FORMATTING)
|
|
||||||
.replace().toComponent());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -120,9 +117,7 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
|
|||||||
* @param mineDown the parsed {@link MineDown} to send
|
* @param mineDown the parsed {@link MineDown} to send
|
||||||
*/
|
*/
|
||||||
public void sendMessage(@NotNull MineDown mineDown) {
|
public void sendMessage(@NotNull MineDown mineDown) {
|
||||||
getAudience().sendMessage(mineDown
|
getAudience().sendMessage(mineDown.toComponent());
|
||||||
.disable(MineDownParser.Option.SIMPLE_FORMATTING)
|
|
||||||
.replace().toComponent());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ dependencies {
|
|||||||
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
|
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
|
||||||
compileOnly 'org.bstats:bstats-bukkit:3.0.2'
|
compileOnly 'org.bstats:bstats-bukkit:3.0.2'
|
||||||
compileOnly 'org.jetbrains:annotations:24.1.0'
|
compileOnly 'org.jetbrains:annotations:24.1.0'
|
||||||
compileOnly 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
|
compileOnly 'net.william278:minedown:1.8.2'
|
||||||
compileOnly 'net.william278:DesertWell:2.0.4'
|
compileOnly 'net.william278:DesertWell:2.0.4'
|
||||||
compileOnly 'me.lucko:commodore:2.2'
|
compileOnly 'me.lucko:commodore:2.2'
|
||||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
||||||
|
|||||||
Reference in new issue
Block a user