From c4bd2eb732167fcda5281974e153819d1eaf5008 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Mon, 9 Jan 2017 00:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/MiaoLobby/Util.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pw/yumc/MiaoLobby/Util.java b/src/main/java/pw/yumc/MiaoLobby/Util.java index dca2f4b..a0d4a48 100644 --- a/src/main/java/pw/yumc/MiaoLobby/Util.java +++ b/src/main/java/pw/yumc/MiaoLobby/Util.java @@ -2,6 +2,7 @@ package pw.yumc.MiaoLobby; import java.security.SecureRandom; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -23,10 +24,9 @@ public class Util { private final static SecureRandom random = new SecureRandom(); private static MiaoLobby plugin = P.getPlugin(); private static Config config = plugin.config; - private static Map tasks; + private static Map tasks = new HashMap<>(); public static void delayTp(final Player player) { - if (player == null) { return; } tasks.put(player.getName(), new BukkitRunnable() { int delay = config.AutoTPDelay;