Sponge 설정하기

“config” 폴더 안에서 모든 설정 파일들을 찾을 수 있습니다.

문법 환경 설정

대부분의 환경 설정 파일은 HOCON 형식을 사용해 만들어질겁니다.

설정할 수 있는 것

플러그인 또한 “config” 라는 폴더 안에 설정 파일들이 있을 것입니다.

월드 설정

현재 월드 설정에는 총 3가지 종류가 있습니다:

  • Global

  • Dimension

  • World

Global 설정 파일은 한 서버 내에 있는 모든 월드와 차원들에 영향을 줄 수 있습니다. 이것은 모든 설정들의 기본 레벨입니다. Dimension 설정 파일은 특정 차원이나 월드의 그룹에 영향을 줍니다. 이 종류의 설정은 Global 설정 파일들을 덮어쓰기(override) 할 것입니다. World 설정 파일은 각 월드 하나하나를 설정해줍니다. World 설정은 Dimension 과 Global 설정들을 덮어쓰기합니다?

Modifying the Config In-Game

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

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

There are flags for specifying the target that you would wish to change. These flags are global, dimension, and world.

  • -g 는 global 의 flag 입니다.

  • -d <dim> targets a dimension (replacing <dim> with the dimension you want to configure)

  • -w <world> targets one world (replacing <world> with your chosen world).

key 는 당신이 바꾸고 싶은 값입니다. value 는 key 값에 대해 설정할 내용을 쓰는 것입니다. 무엇이 되든 상관없어요.

Here is an example of this command in action:

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

This will set the config to log when chunks are loaded for the nether.

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

/sponge config -d nether logging.chunk-load

Saving a World Config

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

/sponge save <flag>

Here is an example for saving the global config:

/sponge save -g

Reloading a World Config

Sometimes it may be desired that a world config is reloaded while the server is still running. This would be useful if you have made changes to the local config file and would like 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>

Here is an example of reloading the end world config file:

/sponge reload -d the_end