Reconnect active command output to player after restart, logoff/logon

This commit is contained in:
Mike Primm 2011-12-30 16:02:27 +08:00 committed by mikeprimm
parent 8c9733b73f
commit a743524318
2 changed files with 23 additions and 2 deletions

View file

@ -328,6 +328,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
}
ids.addFirst(pid); /* Put us first on list */
}
/* And re-attach to active jobs */
if(mapManager != null)
mapManager.connectTasksToPlayer(p);
}
public void onPlayerQuit(PlayerQuitEvent evt) {
playerList.updateOnlinePlayers(evt.getPlayer());