From 561715af4614d4d01f6e0feb756436f9cde99489 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Thu, 10 Nov 2022 10:09:07 +0100 Subject: [PATCH 1/2] 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; } -- 2.34.1 From 43295ff2bb47bc5a10f8f9d09a7f1d6c39a3d7c1 Mon Sep 17 00:00:00 2001 From: Jkobs <66284145+Minzilein2003@users.noreply.github.com> Date: Thu, 10 Nov 2022 10:12:15 +0100 Subject: [PATCH 2/2] Initial --- .gitignore | 2 +- .idea/.gitignore | 3 - .idea/compiler.xml | 16 --- .idea/discord.xml | 7 - .idea/encodings.xml | 7 - .idea/jarRepositories.xml | 65 --------- .idea/misc.xml | 19 --- .idea/uiDesigner.xml | 124 ------------------ .idea/vcs.xml | 7 - .../SPIGOT/api/update/T2CupdateObject.java | 3 + 10 files changed, 4 insertions(+), 249 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/discord.xml delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/jarRepositories.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/uiDesigner.xml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 4788b4b..9562cec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # User-specific stuff .idea/ - +.idea *.iml *.ipr *.iws diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index b6c2c11..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/discord.xml b/.idea/discord.xml deleted file mode 100644 index 30bab2a..0000000 --- a/.idea/discord.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index aa00ffa..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml deleted file mode 100644 index 6e015d6..0000000 --- a/.idea/jarRepositories.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index ecda17e..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 288b36b..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java index 48ddcc0..529d7ca 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java @@ -6,15 +6,18 @@ public class T2CupdateObject { public String pluginName; public String pluginVersion; public String publicVersion; + public String changeLog; public Boolean load; public T2CupdateObject(String pluginName, String pluginVersion, String publicVersion , + String changeLog , Boolean load) { this.pluginName = pluginName; this.pluginVersion = pluginVersion; this.publicVersion = publicVersion; + this.changeLog = changeLog; this.load=load; } } -- 2.34.1