From 2754f12cd59b351e736fd5760c93b4957c27af11 Mon Sep 17 00:00:00 2001 From: carm Date: Tue, 6 Dec 2022 22:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(parse):=20=E4=BF=AE=E5=A4=8DNumber=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/pom.xml | 4 ++-- platform/bukkit/base/pom.xml | 2 +- .../lib/mineconfiguration/bukkit/utils/ProtocolLibHelper.java | 4 ++-- platform/bukkit/general/pom.xml | 2 +- platform/bukkit/pom.xml | 3 ++- platform/bungee/pom.xml | 2 +- platform/spigot/pom.xml | 2 +- pom.xml | 2 +- 8 files changed, 11 insertions(+), 10 deletions(-) diff --git a/common/pom.xml b/common/pom.xml index 1728682..0ba2a24 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 2.1.0 + 2.1.1 4.0.0 @@ -19,7 +19,7 @@ cc.carm.lib easyconfiguration-core - 3.2.0 + 3.2.1 compile diff --git a/platform/bukkit/base/pom.xml b/platform/bukkit/base/pom.xml index 7dfedb3..cc3bc34 100644 --- a/platform/bukkit/base/pom.xml +++ b/platform/bukkit/base/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-bukkit-parent cc.carm.lib - 2.1.0 + 2.1.1 4.0.0 diff --git a/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/utils/ProtocolLibHelper.java b/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/utils/ProtocolLibHelper.java index 50ee566..c7899f0 100644 --- a/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/utils/ProtocolLibHelper.java +++ b/platform/bukkit/base/src/main/java/cc/carm/lib/mineconfiguration/bukkit/utils/ProtocolLibHelper.java @@ -7,11 +7,12 @@ import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.wrappers.EnumWrappers; import com.comphenix.protocol.wrappers.WrappedChatComponent; import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; public class ProtocolLibHelper { @SuppressWarnings("deprecation") - public static void sendTitle(Player player, long fadeIn, long stay, long fadeOut, String line1, String line2) throws Exception { + public static void sendTitle(@NotNull Player player, long fadeIn, long stay, long fadeOut, String line1, String line2) throws Exception { ProtocolManager pm = ProtocolLibrary.getProtocolManager(); if (line1 != null) { @@ -35,7 +36,6 @@ public class ProtocolLibHelper { .write(1, Math.toIntExact(stay)) .write(2, Math.toIntExact(fadeOut)); pm.sendServerPacket(player, timePacket, false); - } } diff --git a/platform/bukkit/general/pom.xml b/platform/bukkit/general/pom.xml index 2438685..83a7358 100644 --- a/platform/bukkit/general/pom.xml +++ b/platform/bukkit/general/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-bukkit-parent cc.carm.lib - 2.1.0 + 2.1.1 4.0.0 diff --git a/platform/bukkit/pom.xml b/platform/bukkit/pom.xml index 9375caa..e6055ba 100644 --- a/platform/bukkit/pom.xml +++ b/platform/bukkit/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 2.1.0 + 2.1.1 ../../pom.xml 4.0.0 @@ -24,6 +24,7 @@ + org.bukkit bukkit diff --git a/platform/bungee/pom.xml b/platform/bungee/pom.xml index 1344b85..8deddb4 100644 --- a/platform/bungee/pom.xml +++ b/platform/bungee/pom.xml @@ -5,7 +5,7 @@ mineconfiguration-parent cc.carm.lib - 2.1.0 + 2.1.1 ../../pom.xml 4.0.0 diff --git a/platform/spigot/pom.xml b/platform/spigot/pom.xml index 023ffb0..3d173d7 100644 --- a/platform/spigot/pom.xml +++ b/platform/spigot/pom.xml @@ -5,7 +5,7 @@ cc.carm.lib mineconfiguration-parent - 2.1.0 + 2.1.1 ../../pom.xml 4.0.0 diff --git a/pom.xml b/pom.xml index 7477587..eb6ad66 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ cc.carm.lib mineconfiguration-parent - 2.1.0 + 2.1.1 pom common