mirror of
https://e.coding.net/circlecloud/MiaoLobby.git
synced 2024-11-17 20:08:46 +00:00
fix: 修复未初始化数组
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
9dfd2a8c00
commit
c4bd2eb732
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user