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

@ -14,6 +14,7 @@ public class ClientConfigurationComponent extends Component {
@Override
public void triggered(JSONObject t) {
ConfigurationNode c = plugin.configuration;
s(t, "confighash", plugin.getConfigHashcode());
s(t, "updaterate", c.getFloat("updaterate", 1.0f));
s(t, "showplayerfacesinmenu", c.getBoolean("showplayerfacesinmenu", true));
s(t, "joinmessage", c.getString("joinmessage", "%playername% joined"));