configuration/Concept

Configuration concept

cfg concept

In McBattlefront there is a special concept for the handling of the configuration. There are three kinds of configurations:

  • configuration
  • running configuration
  • active configuration

The first one refers to the config.yml file. There you can find the whole configuration that is loaded when the plugin/server starts. You may edit this config, but it is recommended that you create arenas and flags in-game.

The second one is the running config. This config represents the configuration loaded to the servers memory at runtime. When you execute server commands like /bfarena you actually change the values stored in the servers memory. With /bfconfig save you can save the running config to the config(file) on the hard drive and load it with /bfconfig load.

The third one is the active config. All changes that you made to the config only apply when you activate them with the command /bfconfig activate! Then, the plugin loads all things from the running config (and therefore from the servers memory) as lots of classes and java stuff you don't have to care about. What you should know is, that from now on, all changes you have made will be active and in-game! If you want to change the config without interrupting running games, you can by simply typing these commands and activate them later! Note that you may have to activate the config once the server performed a restart!


Comments

Posts Quoted:
Reply
Clear All Quotes