Sponge konfigurieren

This article is about configuring Sponge itself; plugins will usually create their own configuration files inside the server „config“ directory. For Vanilla configuration check out the Minecraft Wiki.

Sponge-Konfigurationsdateien

Sponge hat mehrere Konfigurationsdateien, welche alle in config/sponge/-Verzeichnis deines Servers gefunden werden könnne:

  • tracker.conf

  • custom_data.conf

  • global.conf und die zugehörigen Dimensions- und Weltunterkonfigurationen im worlds-Ordner

Die global.conf-Datei enthält die globalen Einstellungen für Sponge. Seine Einstellungen können auch für jeden Welt- und Dimensionstyp überschrieben werden, indem man die Konfigurationsdateien der Unterordner von config/worlds benutzt.

The tracker.conf can be used to configure the Phase Tracker, and the custom_data.conf is used to manage custom data added by plugins.

Die Konfiguration mit einem Text-Editor modifizieren

Open the desired file using your preferred editor. Sponge configuration files use HOCON format, which you can read more about in the „Introduction to HOCON“.

After making your desired changes, save your file. If your server was running while you made changes, you must reload the config file using the reload commands explained below. For example, after making changes to your global.conf, run /sponge reload -g to reload the global configurations from file.

Die globale Config überschreiben

If you would like to override the global configs in just a single world or dimension type, for example raise the spawn cap of monsters in the Vanilla Nether alone, subconfigs allow you to do just that. You can find configs for every world and dimension on your server within the worlds folder, inside the main Sponge config folder. These are sorted first by mods, and then dimension type. Simply modify those configs to your needs, and the changes will be applied to all the related worlds, overriding broader configs. This follows a simple order: World > Dimension > Global

Die Konfigurtion mit Befehlen ändern

It is possible to modify most configs through the in-game command /sponge config. The syntax for the config command looks like this:

/sponge config <flag> <key> <value>

There are the following flags for specifying the target that you would wish to change.

  • -g ist die Flag für global (global.conf)

  • -d <dim> wählt eine Dimension (dimension.conf) aus

  • -w <welt> wählt eine Welt aus (world.conf)

  • -t is the flag for tracker (tracker.conf)

<name> ist ein Platzhaltern, den du mit dem Namen deines Ziels ersetzen musst, z.b. -d minecraft:nether.

The key is the value you want to change. The value is whatever you want to change the value of the key to. For example, if you want to change chunk-load to true in the file config/sponge/minecraft/nether/dimension.conf:

sponge {
    logging {
        # Log when chunks are loaded
        chunk-load=false
    }
}

Hier ist der Befehl, den du verwenden solltest:

/sponge config -d minecraft:nether logging.chunk-load true

If you need to check the value of a key, simply omit the value. Checking the value of a key such as logging.chunk-load in the nether can be done like so:

/sponge config -d minecraft:nether logging.chunk-load

Config speichern

Saving a world config to the file may be desired after making modifications. This can be useful in the event of an unexpected server crash. This is done by using the /sponge save command on the server. The syntax for this command is similar to the config command:

/sponge save <flag>

Dies ist ein Beispiel um die globale Konfiguration zu speichern:

/sponge save -g

Config reloaden

Sometimes you need to reload a world config while the server is still running. This is useful when you have made changes to the local config file, and want to reload it for use on the live server. This is made possible by the command /sponge reload. The syntax for the command is as follows:

/sponge reload <flag>

Hier ein Beispiel für das Nachladen der end Welt-Konfigurationsdatei:

/sponge reload -d minecraft:the_end