fix: 修复未初始化数组

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-01-09 00:39:29 +08:00
parent 9dfd2a8c00
commit c4bd2eb732

View File

@ -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<String, BukkitTask> tasks;
private static Map<String, BukkitTask> tasks = new HashMap<>();
public static void delayTp(final Player player) {
if (player == null) { return; }
tasks.put(player.getName(), new BukkitRunnable() {
int delay = config.AutoTPDelay;