From 561715af4614d4d01f6e0feb756436f9cde99489 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Thu, 10 Nov 2022 10:09:07 +0100 Subject: [PATCH] 13.3_DEV --- pom.xml | 8 ++++---- .../t2codelib/SPIGOT/api/messages/T2CminiMessage.java | 5 +++-- .../net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index c650669..b8a3786 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 13.2 + 13.3_DEV jar T2CodeLib @@ -86,12 +86,12 @@ BenCodez Repo https://nexus.bencodez.com/repository/maven-public/ - + @@ -145,7 +145,7 @@ net.kyori adventure-platform-bukkit - 4.1.3-SNAPSHOT + 4.1.2 diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java index 97ad915..e654ca2 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java @@ -16,11 +16,12 @@ public class T2CminiMessage { public static void sendMiniMessage(String msg) { T2CodeLibMain.adventure().console().sendMessage(replace(msg)); } - public static void miniMessage(String msg, Player player){ + + public static void miniMessage(String msg, Player player) { T2CodeLibMain.adventure().player(player).sendMessage(replace(msg)); } - protected static Component replace(String text){ + protected static Component replace(String text) { return MiniMessage.miniMessage().deserialize(T2Creplace.convertColorCode(text)); } } diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java b/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java index 73e0900..d5f9cf8 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java @@ -159,6 +159,7 @@ public final class T2CodeLibMain extends JavaPlugin { if (adventure == null) { throw new IllegalStateException("Tried to access Adventure when the plugin was disabled!"); } + Bukkit.getConsoleSender().sendMessage(Util.getPrefix() + " Adventure load"); return adventure; }