nut.config - Chessnut/NutScript GitHub Wiki

This library is letting the server owner can adjust the variables that affects on gameplay in-game. The library itself does not do any special things but make the variable changeable and more dynamic. This library mostly handles serverside and shared variables.

You can add up some clientside variables in here but configurable variable in clientside will be forced by the serverowner. So, If you're going to make some kind of thirdperson or something like that, avoid this library to make the variables in that plugin dynamic.

Method

  • nut.config.getChangedValues()
  • A server-side function to get all config values that is differs from the default value of the config values.
  • nut.config.send(client)
  • A server-side function that sends all changed config values to the client.
  • nut.config.save()
  • A server-side function to save all configuration values.
  • nut.config.add(key, value, desc, callback, data, noNetworking, schemaOnly)
  • Add config value to the server.
  • nut.config.set(key, value)
  • Set/Change the config value.
  • nut.config.get(key, default)
  • Get the config value.
  • nut.config.load()
  • Load the config value.