From 91e0cc4b0e6223ff1e5fc2b28ed72858b58dc132 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 9 Aug 2016 12:20:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E5=B7=A5=E5=85=B7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/bukkit/compatible/C.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/pw/yumc/YumCore/bukkit/compatible/C.java b/src/main/java/pw/yumc/YumCore/bukkit/compatible/C.java index e14c81e..476c0d0 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/compatible/C.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/compatible/C.java @@ -204,9 +204,9 @@ public class C { try { // getOnlinePlayers start getOnlinePlayers = Bukkit.class.getDeclaredMethod("getOnlinePlayers"); - if (getOnlinePlayers.getReturnType() != Player[].class) { + if (getOnlinePlayers.getReturnType() != org.bukkit.entity.Player[].class) { for (final Method method : Bukkit.class.getDeclaredMethods()) { - if (method.getReturnType() == Player[].class && method.getName().endsWith("getOnlinePlayers")) { + if (method.getReturnType() == org.bukkit.entity.Player[].class && method.getName().endsWith("getOnlinePlayers")) { getOnlinePlayers = method; } } @@ -273,7 +273,7 @@ public class C { * @throws Exception * 异常 */ - public static void reset(final Player recoverPlayer) throws Exception { + public static void reset(final org.bukkit.entity.Player recoverPlayer) throws Exception { // Send timings first final Object player = getHandle.invoke(recoverPlayer); final Object connection = playerConnection.get(player); @@ -292,7 +292,7 @@ public class C { * @param subtitle * 子标题 */ - public static void send(final Player receivingPacket, final String title, final String subtitle) { + public static void send(final org.bukkit.entity.Player receivingPacket, final String title, final String subtitle) { send(receivingPacket, title, subtitle, 1, 2, 1); } @@ -312,7 +312,7 @@ public class C { * @param fadeOutTime * 淡出时间 */ - public static void send(final Player receivingPacket, final String title, final String subtitle, final int fadeInTime, final int stayTime, final int fadeOutTime) { + public static void send(final org.bukkit.entity.Player receivingPacket, final String title, final String subtitle, final int fadeInTime, final int stayTime, final int fadeOutTime) { if (packetTitle != null) { try { // First reset previous settings