Make web UI reload when configuration changes, server restarts

This commit is contained in:
Mike Primm 2011-11-30 12:31:15 +08:00 committed by mikeprimm
parent 4af95f57df
commit edcf1cfd10
4 changed files with 20 additions and 1 deletions

View file

@ -526,6 +526,10 @@ DynMap.prototype = {
if (!me.options.jsonfile) {
me.lasttimestamp = update.timestamp;
}
if(me.options.confighash != update.confighash) {
window.location.reload(true);
return;
}
me.servertime = update.servertime;
var newserverday = (me.servertime > 23100 || me.servertime < 12900);