sakurawald / fuji

A mod that ports EssentialsX / CMI from bukkit to fabric.
GNU General Public License v3.0
41 stars 5 forks source link

[bug?] Custom home.json Being Overwritten #216

Closed cecaelion closed 4 days ago

cecaelion commented 4 days ago

Are you using the latest available version for your server?

Is there an existing issue for this?

Current Behavior

Hello! The server I run is switching from Essentials Commands to Fuji for efficiency purposes. I am trying to create Fuji homes for players based on their EC homes, with the same names and coordinates, by editing config/fuji/modules/home/home.json. However, when I reboot the server, this file gets overwritten by a new copy.

Expected Behavior

I expected the mod to use the edited home.json file.

Steps To Reproduce

  1. Shut down server.
  2. Edit the file config/fuji/modules/home/home.json to include your username, a named home, and valid coordinates in the proper format.
  3. Reboot server and join.
  4. Run /home list
  5. No homes will come up.

Server Logs

https://mclo.gs/XezjBtp

Anything else?

This is the home.json I was trying to use: home.json

sakurawald commented 4 days ago

Hello, fuji only generate the default configuration structure if it's missing or syntax-error.

As you can see, there is an error in gson syntax. You should delete the trailing comma in column 1076.

Also, there should be an error in the console the first time when fuji loads this file and overrides this file. image

sakurawald commented 4 days ago

Please let met konw if the problem is addressed.

cecaelion commented 4 days ago

Thank you so much! It's weird, for some reason it did notify me of another syntax method earlier.