Maintain playerList reference in DynmapPlugin - prevents some breakage

This commit is contained in:
Mike Primm 2012-01-23 00:48:43 +08:00 committed by mikeprimm
parent 4fa90c85c9
commit 5dfc8f7837

View File

@ -57,6 +57,7 @@ import org.dynmap.DynmapWebChatEvent;
import org.dynmap.DynmapWorld; import org.dynmap.DynmapWorld;
import org.dynmap.Log; import org.dynmap.Log;
import org.dynmap.MapManager; import org.dynmap.MapManager;
import org.dynmap.PlayerList;
import org.dynmap.bukkit.permissions.BukkitPermissions; import org.dynmap.bukkit.permissions.BukkitPermissions;
import org.dynmap.bukkit.permissions.NijikokunPermissions; import org.dynmap.bukkit.permissions.NijikokunPermissions;
import org.dynmap.bukkit.permissions.OpPermissions; import org.dynmap.bukkit.permissions.OpPermissions;
@ -74,6 +75,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
private String version; private String version;
public BukkitEventProcessor bep; public BukkitEventProcessor bep;
public SnapshotCache sscache; public SnapshotCache sscache;
public PlayerList playerList;
private MapManager mapManager; private MapManager mapManager;
public static DynmapPlugin plugin; public static DynmapPlugin plugin;
@ -373,6 +375,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
this.setEnabled(false); this.setEnabled(false);
return; return;
} }
playerList = core.playerList;
sscache = new SnapshotCache(core.getSnapShotCacheSize()); sscache = new SnapshotCache(core.getSnapShotCacheSize());
/* Get map manager from core */ /* Get map manager from core */