mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-01 06:33:38 +01:00
Maintain playerList reference in DynmapPlugin - prevents some breakage
This commit is contained in:
parent
4fa90c85c9
commit
5dfc8f7837
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user