superzanti / ServerSync

Sync files between client and server for Minecraft Forge
GNU General Public License v3.0
163 stars 26 forks source link

Expected ',' or ']' at... #296

Closed dd880602 closed 2 years ago

dd880602 commented 2 years ago

"rules": { "directories": [ { "path": "mods", "mode": "mirror" }, { "path": "resourcepacks", "mode": "mirror" }, { "path": "config", "mode": "push" } ], "files": { "include": [ "mods/" ], "ignore": [ "/serversync-*.jar", "*/serversync-.cfg" ], "redirect": [ "pattern": "resourcepacks/*", "redirectTo": "mods" ] } Where does it need to be modified?

rheimus commented 2 years ago

Your redirect array needs to hold a list of objects.

"redirect": [
  { "pattern": "...", "redirectTo": "..." }
]