/** * Sets the configuration the node will be saved to. * * @param config */ public void setConfiguration(MemoryConfiguration config) { config.addNode(this); }
/** * Sets the un-staged value of the node. The actually configuration will not be updated until * 'MemoryConfiguration.setProperty()' * * @param value */ public void setValue(Object value, boolean toMemoryConfig) { this.value = value; if (config != null && toMemoryConfig) { config.addNode(this); } }