From 5dfc8f78373c6d46fce33d71713a53f089bae8a9 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Mon, 23 Jan 2012 00:48:43 +0800 Subject: [PATCH] Maintain playerList reference in DynmapPlugin - prevents some breakage --- src/main/java/org/dynmap/bukkit/DynmapPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java index f65d0e48..52c10b54 100644 --- a/src/main/java/org/dynmap/bukkit/DynmapPlugin.java +++ b/src/main/java/org/dynmap/bukkit/DynmapPlugin.java @@ -57,6 +57,7 @@ import org.dynmap.DynmapWebChatEvent; import org.dynmap.DynmapWorld; import org.dynmap.Log; import org.dynmap.MapManager; +import org.dynmap.PlayerList; import org.dynmap.bukkit.permissions.BukkitPermissions; import org.dynmap.bukkit.permissions.NijikokunPermissions; import org.dynmap.bukkit.permissions.OpPermissions; @@ -74,6 +75,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI { private String version; public BukkitEventProcessor bep; public SnapshotCache sscache; + public PlayerList playerList; private MapManager mapManager; public static DynmapPlugin plugin; @@ -373,6 +375,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI { this.setEnabled(false); return; } + playerList = core.playerList; sscache = new SnapshotCache(core.getSnapShotCacheSize()); /* Get map manager from core */