Adding chat message pop-ups!
This commit is contained in:
parent
5ee5fee232
commit
f14e097c54
6 changed files with 124 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import java.util.logging.Logger;
|
|||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.event.player.PlayerChatEvent;
|
||||
import org.bukkit.util.config.ConfigurationNode;
|
||||
import org.dynmap.debug.Debugger;
|
||||
import org.dynmap.kzedmap.KzedMap;
|
||||
|
|
@ -16,6 +17,7 @@ public class MapManager extends Thread {
|
|||
private Debugger debugger;
|
||||
private MapType map;
|
||||
public StaleQueue staleQueue;
|
||||
public ChatQueue chatQueue;
|
||||
public PlayerList playerList;
|
||||
|
||||
/* lock for our data structures */
|
||||
|
|
@ -56,6 +58,7 @@ public class MapManager extends Thread {
|
|||
this.world = world;
|
||||
this.debugger = debugger;
|
||||
this.staleQueue = new StaleQueue();
|
||||
this.chatQueue = new ChatQueue();
|
||||
|
||||
tileDirectory = combinePaths(DynmapPlugin.dataRoot, configuration.getString("tilespath", "web/tiles"));
|
||||
webDirectory = combinePaths(DynmapPlugin.dataRoot, configuration.getString("webpath", "web"));
|
||||
|
|
@ -146,4 +149,9 @@ public class MapManager extends Thread {
|
|||
debugger.debug("invalidating tile " + tile.getName());
|
||||
staleQueue.pushStaleTile(tile);
|
||||
}
|
||||
|
||||
public void addChatEvent(PlayerChatEvent event)
|
||||
{
|
||||
chatQueue.pushChatMessage(event);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue